The Intel® Distribution for Python* has now added the option of installing the distribution and specialized packages from the Python Package Index (PyPI) using pip. The packages require the use of pip version 9.0.1, and are available utilizing the following instructions:
Intel® Runtime Packages
Package Name | pip command | Platform Availability |
mkl | pip install mkl | Linux, Win, macOS |
ipp | pip install ipp | Linux, Win, macOS |
impi | pip install impi | Linux, Win |
daal | pip install daal | Linux, Win, macOS |
intel-openmp | pip install intel-openmp | Linux, Win, macOS |
Performance Packages
To avoid issues with dependencies with NumPy or SciPy, they should be uninstalled before installing the Intel® variants of the packages–use pip uninstall numpy scipy -y to remove the packages first.
Package Name | pip command | Platform Availability |
numpy | pip install intel-numpy | Linux, Win |
scipy | pip install intel-scipy | Linux, Win |
Note: If one installs intel_numpy, one would also get mkl_fft and mkl_random (with NumPy).
Similarly, if one installs intel_scipy, one would also get intel_numpy along with the installation of SciPy.
Specialized NumPy packages
In order to utilize these packages, the standard NumPy installation must be removed first using the command: pip uninstall numpy -y
Package Name | pip command | Platform Availability |
mkl_fft | pip install mkl_fft | Linux, Win |
mkl_random | pip install mkl_random | Linux, Win |
Development only packages
Package Name | pip command | Platform Availability |
mkl-devel | pip install mkl-devel | Linux, Win, macOS |
ipp-devel | pip install ipp-devel | Linux, Win, macOS |
daal-devel | pip install daal-devel | Linux, Win, macOS |
Troubleshooting
While `pip install`-ing any package, if installation fails with the following error message :
zlib.error: Error -5 while decompressing data: incomplete or truncated stream
retry after running the following command: rm -rf ~/.cache/pip