Numpy Installation For Python Ver-3.9
Solution 1:
The numpy
package does not yet include binaries for Python 3.9, so pip
tries to compile from source. This (of course) requires you to have the appropriate C compiler, as the error message says. That is not straightforward. pip
wants Visual C++ 14.2. The only version readily available from Microsoft is Visual C++ 2019, a.k.a. version 16, which won't work with pip
. You can get Visual C++ 2015, a.k.a version 14, from https://visualstudio.microsoft.com/vs/older-downloads/. But it appears that only the latest version is free. You may have to pay for an older version. Even then, having the compiler isn't enough. You have to configure it, and that is not for the faint-hearted.
Instead, download a prepackaged binary wheel from Christoph Gohlke's site at https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy. The official scipy.org
docs recommend this site. Obviously you must choose the .whl
file that matches your system.
Install the wheel using pip
like this:
pip install D:\Users\<user>\Downloads\numpy-1.19.2+mkl-cp39-cp39-win_amd64.whl
Solution 2:
last lines says:
"error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/"
Do you have msvc 14 ?
Post a Comment for "Numpy Installation For Python Ver-3.9"