I am trying to install azure-cli on centos 7 box. I am getting this error repeatedly
Error: Package: azure-cli-2.0.80-1.el7.x86_64 (azure-cli)
Requires: libpython3.6m.so.1.0()(64bit)
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
I tried to execute both commands but none of these worked for me.
2
Answers
Acturally, Azure CLI requires
python3
, it’s even an executable Python packageazure-cli
which you can find in PyPI.org. So please make sure there is a Python 3 runtime installed in your CentOS 7.If you want to fix your issue manually, you can try to download and install the related rpm package for
Libpython3.6m.so.1.0()(64bit)
from https://pkgs.org/download/libpython3.6m.so.1.0()(64bit), as the figure below.However, the best way is to follow the offical tutorial
Install Azure CLI with yum
to install it in CentOS 7.Otherwise, the other solution is as below to directly install its python package via
pip
.python3 -V
orpython -V
to see the Python version or system will remind you to install it.pip
orpip3
command for Python 3 runtime had been installed viapip3 -V
orpip -V
to see thepip
version or system will remind you to install it.azure-cli
via commandsudo pip3 install azure-cli
orsudo pip install azure-cli
, it will help to installazure-cli
to the system path, then you can try to use it viaaz --version
.You can install it by mentioning the repo/package URL
packages can be found here https://packages.microsoft.com/yumrepos/azure-cli/