Intel® Distribution for Python* is a cluster of packages that includes Numba*, NumPy* and more. All these packages are optimized via Intel® oneAPI Math Kernel Library (oneMKL and Intel® oneAPI Data Analytics Library (oneDAL to make the Python* application more efficient. The distribution includes a multitude of popular components, some of which include:
Libraries:
- Python
- NumPy
- SciPy
Mkl interfaces:
- Mkl-service
- Mkl-random
- Mkl-fft
- Mkl-umath
GPU components:
- Dpctl
- Dpnp
- Numba-dpex
CPUs:
- Intel® Core™ processor family
- Intel® Xeon® processor family
GPUs:
- Intel® UHD Graphics for 11th generation Intel processors or newer
- Intel® Iris® Xᵉ graphics
- Intel® Arc™ graphics
- Intel® Data Center GPU Flex Series
- Intel® Data Center GPU Max Series
Operating systems:
- Unix family*
- Windows® 10
- Windows* 11
- pported versions:
- Python 3.11, Python 3.12
Package management:
- conda*
- Pip
- Mamba
Compatible with:
- VS Code
- Jupyter Notebook
- Microsoft Visual Studio*
- PyCharm*
The Intel® Distribution for Python* supports several installation options
Supported operating systems are outlined under System Requirements. You may select the components you wish to install. The full list of components in the Intel® Distribution for Python* is outlined on the landing page section What’s Included.
You can use Intel® Distribution for Python* in Intel® Tiber™ Developer Cloud. After getting access to the cloud system, follow the instructions below to install Intel® Distribution for Python* with one of the available installation options.
- To download the Intel® Distribution for Python*, visit here and choose the installation method of your choice.
- Run the following commands to install on respective platform:
Linux installation (Interactive) Note that the file name must be changed to how to appears in your downloads folder.
bash ~/intelpython3-202X.X.X.sh Linux installation (CLI)
bash ~/intelpython3.sh -b -u -p ~/intelpython3 The flags can be included as necessary. They are used as follows: -b enables batch mode, running the installation without interactive prompts. -u updates the current installation. You may omit this if this is the first time you’re installing IDP on this machine. -p specifies the installation path prefix. In this example, ~/intelpython3 is the target directory.
Windows installation (Interactive)
intelpython3.exe Windows installation (CLI)
start /wait intelpython3.exe /S /RegisterPython=0 /D=%LOCALAPPDATA%\intelpython3 - Activate the conda environment on your respective platform.
Linux The following commands can be used to activate the Intel® Distribution for Python installation:
#Root access or Intel(R) Developer Cloud installation*
source /opt/intel/intelpython3/bin/activate
#Home installation
source $HOME/intelpython3/bin/activateWindows
Navigate to the installation directory of Intel Python and find the "Scripts" directory, then run .\activate in the terminal.
The command prompt should now show (base) at the start of the command prompt.
- Verify instalaltion.
conda listDeactivating environment for Offline Installer To deactivate your IDP environment, run the command below until base env is deactivated.
conda deactivate- Follow conda Installation Guide to install conda in your environment. If you already have conda installed in your system, update it with the command:
conda update conda- Add Intel channel and conda-forge to tell conda to choose Intel packages over default packages when available.
conda config --add channels https://software.repos.intel.com/python/conda/
conda config --add channels conda-forgeRemove defaults channel from .condarc if it exists
conda config --remove channels defaults- Install Intel® Distribution for Python* via conda. We recommend that you create a new environment while installing. To install the python3 environment, run the following command:
conda create -n idp intelpython3_full python=3.xPlease note that “x” in “python=3.x” should signify which version of Python* you would like to install. For example, for Python* version 3.9:conda create -n idp intelpython3_full python=3.9
For individual installation commands, refer to the What’s included section.
- Activate the conda environment:
conda activate idp- If you do not have Mamba, get Miniforge by following the instructions here. Otherwise, ensure that it is updated:
conda update mamba- Add Intel channel and conda-forge to tell conda to choose Intel packages over default packages, when available.
conda config --add channels https://software.repos.intel.com/python/conda/
conda config --add channels conda-forgeRemove defaults channel from .condarc if it exists.
conda config --remove channels defaults- Install Intel® Distribution for Python* via Mamba. We recommend that you create a new environment while installing. To install the core python3 environment, run the following command:
mamba create -n idp intelpython3_full python=3.xPlease note that “x” in python=3.x should signify which version of Python* you would like to install.
- Acitvate conda environment, then follow the usual steps for activating the environment:
mamba activate idp- Verify installation.
mamba list - If you don’t have Docker installed on your machine, follow these instructions to install it.
- Pull the image from DockerHub using the following command:
docker pull intel/python:latest - Run a performance sample by running the following commands:
git clone https://github.com/intel/ai-containers
cd ai-containers/python
docker run --rm -it \
-v $PWD/tests:/tests \
intel/python:latest \
python /tests/perf_sample.py- Verify installation.
conda listYou can see the benefits of using the Intel® Distribution for Python* on your own machine by comparing a simple program’s runtime between both distributions. First, run the sample code below in your new Intel® Distribution for Python* environment, and take note of the total runtime which should be displayed in the output.
Once you have taken note of the runtime of this program, switch the environment back to stock Python* and run the script again. Compare the runtime in the stock environment to the runtime in the Intel® distribution environment. You should see the benefits provided by the Intel® Distribution for Python* through the significantly decreased runtime.
[needs table this]
No special modifications to your existing Python* projects are required to start using them with this toolkit. You can refer to samples on GitHub to learn more about this distribution.#
- What's Included
- Data Parallel Extension for NumPy* documentation
- Data Parallel Control Library* documentation
- Data Parallel Extension for Numba* documentation
If you have further questions or need support on your workload optimization, please submit your queries to the Intel® Distribution for Python* Forum or Intel® Distribution for Python* GitHub, on the Issues or Discussions pages, depending on the type of support required.
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.
Performance results are based on testing as of dates shown in configurations and may not reflect all publicly available updates. See backup for configuration details. No product or component can be absolutely secure.
Your costs and results may vary.
Intel technologies may require enabled hardware, software or service activation. © Intel Corporation. Intel, the Intel logo, and other Intel marks are trademarks of Intel Corporation or its subsidiaries. Other names and brands may be claimed as the property of others.
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.