Some native Linux packages are required when installing the CLI with:
- Interactive install script
pip
Current supported Python versions are Python 3.6, 3.7, 3.8. Azure CLI packages prior to version 2.1.0 support both Python 2.7 and Python 3.
The commands to run to install the dependencies for some common distributions are listed below.
Python 2.7.3 should be already on the machine. Install Python 3.6+ if needed.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev
Python 2.7.6 should be already on the machine. Install Python 3.6+ if needed.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev
Python 2.7.10 should be already on the machine. Install Python 3.6+ if needed.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
Python 2.7.3 should be already on the machine. Install Python 3.6+ if needed.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev
Python 2.7.9 should be already on the machine. Install Python 3.6+ if needed.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
Not supported with the default version of Python (2.6.6) on the machine. Install Python 3.6+ if needed.
Python 2.7.5 should be already on the machine. Install Python 3.6+ if needed.
sudo yum check-update; sudo yum install -y gcc libffi-devel python-devel openssl-devel
Not supported with the default version of Python (2.6.6) on the machine. Install Python 3.6+ if needed.
Python 2.7.5 should be already on the machine. Install Python 3.6+ if needed.
sudo yum check-update; sudo yum install -y gcc libffi-devel python-devel openssl-devel
Python 2.7.8 should be already on the machine. Install Python 3.6+ if needed.
sudo zypper refresh && sudo zypper --non-interactive install gcc libffi-devel python-devel openssl-devel
Python is installed in the Azure-specific distribution of Flatcar, but is installed into the non-standard location /usr/share/oem/python/bin/python
.