Open yuchichen286 opened 1 year ago
if you use colab, pls refer to the install process in https://github.com/AI4Finance-Foundation/FinRL/blob/master/examples/Stock_NeurIPS2018_SB3.ipynb if you use your local computer, pls read the install process in docs (https://finrl.readthedocs.io/en/latest/start/installation.html) . If it does not work either, you can download .zip directly.
if you use colab, pls refer to the install process in https://github.com/AI4Finance-Foundation/FinRL/blob/master/examples/Stock_NeurIPS2018_SB3.ipynb if you use your local computer, pls read the install process in docs (https://finrl.readthedocs.io/en/latest/start/installation.html) . If it does not work either, you can download .zip directly.
ImportError Traceback (most recent call last)
box2d
box2d is not required. Please comment it out.
If you really want to have box2d installed, you can consider installing swig:
pip install swig
Hello, I'm having the same issue - specifically getting the message:
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> box2d-py
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I've tried all of the steps here (https://finrl.readthedocs.io/en/latest/start/installation.html) and here (https://github.com/AI4Finance-Foundation/FinRL/issues/551), with environments using both python 3.8 and 3.9 and keep getting the same install error. I'm using MacOs and trying to run this in PyCharm Pro. I've been trying (and failing) to install this for around 3 hours now, so any help would be GREATLY appreciated :).
As far as commenting out box2d, to which file/folder are you referring?
I found a way to " pip install . " successful.
I am also facing issues installing...
ERROR: Failed building wheel for box2d-py Failed to build box2d-py ERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects
Which file/folder should box2d be commented out from? It is not in the requirements.txt I can see?
I found a way to " pip install . " successful.
- In poetry.lock file, delete all box2d relative info. Maybe not to remove all, because it is still install box2d-py despite not modify follow step 2.
- In pyproject.toml file, comment out elegantrl in [tool.poetry.dependencies].
- git clone https://github.com/AI4Finance-Foundation/ElegantRL
- cd ElegantRL . In setup.py file, comment out gym[Box2D]
- Under ElegantRL path, "pip install ."
this exactly works for my windows + conda environment
error: command 'swig.exe' failed: No such file or directory [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> box2d-py
After facing this error, I tried to SWIG and install box2d.file (maybe there are some errors or other details that I didn't do well), but it didn't work well and still this error. Could you please help me to solve this error? pleaseeeee and helppppp~(crying) Thx~~ @zhumingpassional