Install Scipy with MKL through PIP

后端 未结 7 1104
一向
一向 2020-12-30 23:46

I am using PIP to install Scipy with MKL to accelerate the performance. My OS is Ubuntu 64 bit. Using the solution from this question, I create a file .numpy-site.cfg

7条回答
  •  猫巷女王i
    2020-12-31 00:27

    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 pip
    pip 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.

提交回复
热议问题