Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NumPy 1.21.2 may not yet support Python 3.10

Python 3.10 is released and when I try to install NumPy it gives me this: NumPy 1.21.2 may not yet support Python 3.10.. what should I do?

like image 963
Mohamed Yahya Avatar asked Oct 05 '21 23:10

Mohamed Yahya


People also ask

What is the current version of numpy?

numpy 1.23. 2. NumPy is the fundamental package for array computing with Python.

Why numpy is not working in Python?

Python import numpy is not working that means eithers the module is not installed or the module is corrupted. To fix the corrupted module, uninstall it first then reinstall it.

Does Python 3.7 support numpy?

The Python versions supported in this release are 3.8-3.10, Python 3.7 has been dropped.


2 Answers

If on Windows, numpy has not yet released a precompiled wheel for Python 3.10. However you can try the unofficial wheels available at https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy . Specifically look for

  • numpy‑1.21.2+mkl‑cp310‑cp310‑win_amd64.whl or
  • numpy‑1.21.2+mkl‑cp310‑cp310‑win32.whl

depending on you system architecture.

After downloading the file go to the download directory and run pip install "<filename>.whl".)

(I have personally installed numpy‑1.21.2+mkl‑cp310‑cp310‑win_amd64.whl and it worked for me.)

like image 92
AXO Avatar answered Oct 23 '22 13:10

AXO


Since you are on MS-Windows you can also make use of pipwin - this windows only utility is pip installable and can download and install a number of "unofficial" builds (provided by the excellent Christoph Gohlke) of scientific from the https://www.lfd.uci.edu/~gohlke/pythonlibs/ but takes the guesswork out of which file(s) to download and install.

A session might run:

pip install pipwin
pipwin install numpy

Alternatively you could use the py launcher as in:

py -3.10 -mpip install pipwin
py -3.10 -mpipwin refresh
py -3.10 -mpipwin install numpy

The middle step tells pipwin to populate its list of what is currently available.

like image 6
Steve Barnes Avatar answered Oct 23 '22 12:10

Steve Barnes