How to install Azure library packages for Python

The Azure SDK for Python is composed solely of many individual libraries that can be installed in standard Python or Conda environments.

Libraries for standard Python environments are listed in the package index.

Packages for Conda environments are listed in the Microsoft channel on anaconda.org. Azure packages have names that begin with azure-.

With these Azure libraries you can provision and manage resources on Azure services (using the management libraries, whose names begin with azure-mgmt) and connect with those resources from app code (using the client libraries, whose names begin with just azure-).

Install the latest version of a library

pip install <library>

pip install retrieves the latest version of a library in your current Python environment.

On Linux systems, you must install a library for each user separately. Installing libraries for all users with sudo pip install isn't supported.

You can use any package name listed in the package index.

Install specific library versions

Be sure you've added the Microsoft channel to your Conda configuration (you need to do this only once):

conda config --add channels "Microsoft"
pip install <library>==<version>

Specify the desired version on the command line with pip install.

You can use any package name listed in the package index.

Install preview packages

pip install --pre <library>

To install the latest preview of a library, include the --pre flag on the command line.

Microsoft periodically releases preview library packages that support upcoming features, with the caveat that the library is subject to change and must not be used in production projects.

You can use any package name listed in the package index.

Verify a library installation

pip show <library>

If the library is installed, pip show displays version and other summary information, otherwise the command displays nothing.

You can also use pip freeze or pip list to see all the libraries that are installed in your current Python environment.

You can use any package name listed in the package index.

Uninstall a library

pip uninstall library.

To uninstall a library, use pip uninstall.

You can use any package name listed in the package index.