huggingface/deep-rl-class

[HANDS-ON BUG] Unit 7: "could not build wheels for numpy"

nicosanc opened this issue · 1 comments

Describe the bug

This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

Material

I am running this on the anaconda prompt, using the exact steps from Unit 7. I cloned the repo, activated the venv, cd'd into ml-agents, then ran the two pip install commands but both result in this error.

This is the error at the beginning of the callback:
Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [287 lines of output]
setup.py:63: RuntimeWarning: NumPy 1.21.2 may not yet support Python 3.10.

If not:
I am on Windows 11

Resolved: The version of the repository I had cloned must have been outdated somehow. Cloned the repo again and the pip install commands worked.