Install Scipy with MKL through PIP Install Scipy with MKL through PIP linux linux

Install Scipy with MKL through PIP


Intel has been publishing wheels of packages like Numpy, Scipy and Scikit-learn to PyPI. These wheels have been built while linking against Intel MKL, and include various optimizations.

If you want Scipy built with Intel MKL:

#Remove existing Numpy and/or Scipy:pip uninstall numpy scipy -y#Install scipy built with Intel MKL:pip install intel-scipy

More information available here


I have Win10 64Bit with Python 3.6.2 i have installed scipy through http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

I followed following steps :

  • Step 1: Uninstall if you have any previous version of numpy, pip uninstall numpy
  • Step 2 : Download numpy‑1.13.1+mkl‑cp36‑cp36m‑win_amd64.whl withMKL(Math Kernel Library) from below link, http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
  • Step 3: copy downloaded file into another location and launch commandprompt from that location.
  • Step 4: run this command, pip install -U numpy-1.13.1+mkl-cp36-cp36m-win_amd64.whl
  • Step 5: Now Download scipy library from, http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
  • Step 6: Copy downloaded file into same location in which numpy iscopied.
  • Step 7: In CMD prompt run this cmd, pip install scipy-0.19.1-cp36-cp36m-win_amd64.whl

Done!


2 years have passed since this question was asked.

There are now numpy/scipy wheels for linux that use a openblas compiled for avx2, so you can get much better performance without building packages. You may need to upgrade pip to get it to install the wheel:

pip install --upgrade pippip install numpy scipy

If you want MKL, then you can install Anaconda or Intel Distribution for Python. They use conda instead of pip to manage packages, but they are free and distribute packages that contain all the dependences, including MKL.