How to Install Azure Python Package

You can install Azure Python package either for Python 2 or Python 3 using pip (Python package index). Before you are able to install it though you have to:

First, make sure pip is installed, of course. It’s available on most Linux distributions such as python-pip (for Python 2) or python3-pip (for Python 3).

Second, ensure that you have the latest distribute and setuptools Python packages. This can be done with the commands:

pip install --upgrade distribute

pip install --upgrade setuptools

Third, install the necessary operating system dependencies libffi-dev, libssl-dev, python-dev. In Ubuntu you can do it with the command:

sudo apt-get install libffi-dev libssl-dev python-dev

Finally, install the full Azure bundle package with the command:

pip install --pre azure

In some cases where you have both Python 2 and Python 3, you have to run pip3 instead of just pip to invoke pip for Python 3.

Once you have installed the bundle you can start using it following the official Azure instructions.

Comments

So empty here ... leave a comment!

Leave a Reply

Sidebar



%d bloggers like this: