Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [925 lines of output]
setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
疑似 numpy 要求的版本过低(numpy<v1.20.0)导致不支持 Python 3.10
如果python要用3.10,需要提升numpy版本到1.22以上,1.19.5太低了,numpy1.19.5的版本只支持python3.8以下。