AI4Finance-Foundation / AI4Finance-Foundation/FinRL
Poetry install doesn't work
- Dominant language
- Jupyter Notebook
- Stars
- 16.3k
- Forks
- 3.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I can't install dependencies with Poetry.
**To Reproduce**
Steps to reproduce the behavior:
1. `poetry env use 3.9`
2. `poetry lock`
3. `poetry install`
**Screenshots**
Poetry reports that numpy is not installed before scipy, which is not true, because I have confirmed numpy is already installed.
```
• Installing scipy (1.6.1): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
Error: 'numpy' must be installed before running the build.
at /opt/homebrew/Cellar/poetry/1.4.2/libexec/lib/python3.11/site-packages/poetry/installation/chef.py:152 in _prepare
148│
149│ error = ChefBuildError("\n\n".join(message_parts))
150│
151│ if error is not None:
→ 152│ raise error from None
153│
154│ return path
155│
156│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with scipy (1.6.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "scipy (==1.6.1)"'.
```
**Env**
- OS: MacOS 13.2.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.