It looks like the only 64 bit windows installer for Numpy is for Numpy version 1.3.0 which only works with Python 2.6
http://sourceforge.net/projects/numpy/files/NumPy/
It strikes me as strange that I would have to roll back to Python 2.6 to use Numpy on Windows, which makes me think I’m missing something.
Am I?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Try the (unofficial) binaries in this site:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
You can get the newest numpy x64 with or without Intel MKL libs for Python 2.7 or Python 3.
Method 2
Assuming you have python 2.7 64bit on your computer and have downloaded numpy from here, follow the steps below (changing numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whl as appropriate).
- Download (by right click and “save target”) get-pip to local drive.
-
At the command prompt, navigate to the directory containing
get-pip.pyand runpython get-pip.pywhich creates files in
C:Python27Scripts, includingpip2,pip2.7andpip. -
Copy the downloaded
numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whlinto the above directory (C:Python27Scripts) -
Still at the command prompt, navigate to the above directory and run:
pip2.7.exe install "numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whl"
Method 3
Download numpy-1.9.2+mkl-cp27-none-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy .
Copy the file to C:Python27Scripts
Run cmd from the above location and type
pip install numpy-1.9.2+mkl-cp27-none-win32.whl
You will hopefully get the below output:
Processing c:python27scriptsnumpy-1.9.2+mkl-cp27-none-win32.whl Installing collected packages: numpy Successfully installed numpy-1.9.2
Hope that works for you.
EDIT 1
Adding @oneleggedmule ‘s suggestion:
You can also run the following command in the cmd:
pip2.7 install numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Basically, writing pip alone also works perfectly (as in the original answer). Writing the version 2.7 can also be done for the sake of clarity or specification.
Method 4
The (unofficial) binaries (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) worked for me.
I’ve tried Mingw, Cygwin, all failed due to varies reasons. I am on Windows 7 Enterprise, 64bit.
Method 5
You may also try this, anaconda
http://continuum.io/downloads
But you need to modify your environment variable PATH, so that the anaconda folder is before the original Python folder.
Method 6
It is not improbable, that programmers looking for python on windows, also use the Python Tools for Visual Studio. In this case it is easy to install additional packages, by taking advantage of the included “Python Environment” Window. “Overview” is selected within the window as default. You can select “Pip” there.
Then you can install numpy without additional work by entering numpy into the seach window. The coresponding “install numpy” instruction is already suggested.
Nevertheless I had 2 easy to solve Problems in the beginning:
- “error: Unable to find vcvarsall.bat”: This problem has been solved here. Although I did not find it at that time and instead installed the C++ Compiler for Python.
- Then the installation continued but failed because of an additional inner exception. Installing .NET 3.5 solved this.
Finally the installation was done. It took some time (5 minutes), so don’t cancel the process to early.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0