Supplying NumPy site.cfg arguments to pip

后端 未结 4 1892
生来不讨喜
生来不讨喜 2020-12-05 00:34

I\'m using NumPy built against Intel\'s Math Kernel Library. I use virtualenv, and typically use pip to install packages.

However, in order for NumPy to find the

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 01:01

    Your goal of installing NumPy to use Intel's Math Kernel Library is now much easier since Intel created pips to install MKL + NumPy:

    pip uninstall numpy -y  # if the standard numpy is present
    pip install intel-numpy
    

    as well as intel-scipy, intel-scikit-learn, pydaal, tbb4py, mkl_fft, mkl_random, and the lower level packages if you need just them. Again, you must first uninstall the standard packages if they're already installed in your virtualenv.

    NOTE:

    If standard NumPy, SciPy and Scikit-Learn packages are already installed, the packages must be uninstalled before installing the Intel® variants of these packages(intel-numpy etc) to avoid any conflicts. As mentioned earlier, pydaal uses intel-numpy, hence it is important to first remove the standard Numpy library (if installed) and then install pydaal.

提交回复
热议问题