I am trying to install the latest version of numpy, the 1.22.3, but it looks like pip is not able to find this last release.
I know I can install it locally from the source code, but I want to understand why I cannot install it using pip.
PS: I have the latest version of pip, the 22.0.4
ERROR: Could not find a version that satisfies the requirement numpy==1.22.3 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0rc1, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0rc1, 1.19.0rc2, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0rc1, 1.20.0rc2, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0rc1, 1.21.0rc2, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5)
ERROR: No matching distribution found for numpy==1.22.3
CodePudding user response:
Please check your Python version. Support for Python 3.7 is dropped since Numpy 1.22.0 release. [source]
CodePudding user response:
I just tried installing NumPy 1.22.3 using pip 22.0.4 and had no issues at all. Try using a virtual environment.
python.exe -m venv .venv
.venv\Scripts\activate.bat
pip install --upgrade pip
pip install numpy
https://docs.python.org/3/library/venv.html
CodePudding user response:
Just do:
pip install numpy
It will install the latest version of numpy compatible with your python version. If this somehow that doesn't work, you can always go to the pypi webpage download the version you want from there and install it using.
pip install path_to_your_file
If your python version is not compatible (as it seems is not), you can always do a virtual environment with a newer python version using pipenv, conda, etc.