安装ansible报错(No module named 'setuptools_rust')
最近在centos8下使用ansible,安装时报了“No module named 'setuptools_rust'”,第一反应缺少包嘛,安装一个就好,然后就陷入了不同依赖包的安装里,最后发下只需要升级一下pip就好了----毁灭吧。。。聊以记之,供各位道友参考。
#升级pip
pip3 install -U pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
#安装我需要的指定版本ansible pip3 install ansible==4.10.0 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
ps:
本来是准备用yum安装的,发现epel-release安装好了,给出的ansible版本是9.2,版本太高了不兼容之前的写的脚本。。。

浙公网安备 33010602011771号