Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install numpy+mkl for python 2.7 on windows 64 bit?

Tags:

python

numpy

I've already installed numpy 1.9.0 in Python.Now what should I do to get numpy+mkl?

like image 579
Hari Avatar asked Dec 19 '16 07:12

Hari


People also ask

What version of numpy does Python 2.7 use?

The NumPy 1.16. 1 release fixes bugs reported against the 1.16. 0 release, and also backports several enhancements from master that seem appropriate for a release series that is the last to support Python 2.7. The wheels on PyPI are linked with OpenBLAS v0.

How can you install numpy package in Python on a Windows system?

NumPy Installation On Windows Operating System You can download the required version of python from python.org. Once python is installed successfully, open command prompt and use pip to install numpy.


2 Answers

If you do not have an entire Python distribution or you do not want to install one, you can download and install a compiled whl package from Christoph Gohlke's webpage. This whl contains numpy and is linked against mkl. When installing this package, you install both: numpy with the mkl dependencies.

All you have to do is:

  • download the correct whl file (Choose the right Python version and 32/64 file)
  • open a Windows cli with Windows+R and by running inside cmd
  • go to the directory where you have downloaded the whl file, with cd instructions
  • run pip install numpy‑1.XX.Y+mkl‑cp3X‑cp3Xm‑win_amd64.whl

For example, the command can be

pip install numpy‑1.11.3+mkl‑cp35‑cp35m‑win_amd64.whl

You can do it for any package with some code that has to be compiled

like image 69
Guillaume Jacquenot Avatar answered Nov 01 '22 10:11

Guillaume Jacquenot


The easiest way is to install an entire Python distribution with lots of included packages, such as numpy and mkl. I would suggest the Anaconda Python distribution, https://www.continuum.io/downloads

like image 2
jmd_dk Avatar answered Nov 01 '22 09:11

jmd_dk