Python is one of my favourite languages for prototyping and developing applications. Unfortunately, as an interpreted language, Python’s performance is of great concern when running an application at scale in a production environment. Developers will typically resort to using languages like C or C++ that can be compiled into a high performance application for this very reason.
Fortunately, as I’ve stated many times before, “There’s always a better way and more than one solution!” Although you can download the latest version of Python directly from the Python.org website, other distributions are available. I use the Anaconda Python distribution as it is both comprehensive and easy to manage using Conda or Anaconda Navigator.
To overcome some of Python’s performance shortfalls you can “Supercharge applications and speed up core computational packages” with the INTEL Distribution for Python, powered by Anaconda. The Intel Distribution for Python is intended to address performance constraints that would otherwise inhibit you from using your application in a production environment at scale.
This Anaconda & Intel Python Distribution FAQ presents the differences and performance gains. Note that both distributions are available for Windows, MacOS, and Linux.
Install Anaconda3
Note: You will be asked to sign up for an Anaconda Cloud account. This will enable you to manage and distribute your packages and upload and download your environments, notebooks, and projects Anaconda Cloud.
Install the Intel Distribution for Python
After you have successfully installed Anaconda on your machine, follow these step by step instructions to take advantage of the Intel Distribution for Python in your production environment. I highly recommend reading the instructions BEFORE proceeding with the step by step instructions provided as several installation options are presented and may vary depending on your operating system. Note that you may elect to install either the core or full Intel Distribution for Python depending on your requirements and versions are available for both Python 2 and Python 3.
We opted to install the full Intel Distribution for Python, although the core Intel Distribution for Python may serve your immediate needs. Since the Intel Distribution for Python is powered by Anaconda, you can easily manage your Python packages and environments accordingly.
Note that the Full Intel Distribution for Python is quite large and will take some time to download depending on the speed of your internet connection.
Having the ability to significantly increase the performance of your application by using Intel’s Distribution for Python is definitely far more productive, effective, and efficient than having to rewrite your application in another language for the sake of performance alone.
Until Next Time – STAY lean!
Related Articles and Resources
- Anaconda & Intel Python Distribution FAQ
- Conda User Guide
- Anaconda Python Distribution
- Anaconda Navigator
- Installing Intel Distribution for Python and Intel Performance Libraries with Anaconda
