Some native Linux packages are required when installing the CLI with:
- Interactive installation script
pip
Current supported Python versions are Python 3.8 ~ 3.10.
The commands to run to install the dependencies for some common distributions are listed below.
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev build-essential
Install the latest Python 3.9 available in the software repo.
sudo dnf install -y gcc libffi-devel python39-devel openssl-devel
Install Python 3.8+ 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
.