-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Suggestion: update numpy version in ml-agents-envs/setup.py #6002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Environment info: absl-py 2.0.0 |
Additional note: |
This has already been patched on develop and will be available next release. #5997 |
Note: problem and solution contained within
context
Following this guide: https://github.com/Unity-Technologies/ml-agents/blob/develop/docs/Installation.md,
Which points to this repo: git clone --branch release_21 https://github.com/Unity-Technologies/ml-agents.git,
line 63 of file ml-agents/ml-agents-envs
/setup.py: "numpy==1.21.2"
problem
` Building wheel for numpy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [214 lines of output]
setup.py:63: RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.`
So try numpy==1.22.1 and it installs fine but new error when its time to run mlagents-learn:
Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe
Solution
Finally, pip install numpy==1.23.1 and everything works fine. No errors on install or on mlagents-learn
Conclusion:
For users installing the following this guide verbatim: https://github.com/Unity-Technologies/ml-agents/blob/develop/docs/Installation.md
The version of numpy in setup.py (in ml-agents-envs/setup.py and ml-agents/setup.py) should be changed to:
"numpy==1.23.1"
The text was updated successfully, but these errors were encountered: