1、有python3环境但没有pip3工具?
答:
-
使用python(推荐):python3 -m ensurepip --upgrade(使用python自带的
ensurepip
模块来安装) -
使用CentOS:yum install -y ansible
-
使用Ubuntu:apt install -y ansible
2、Python3安装Ansible报错Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-m4pbppr7/cryptography/
报错原因时缺少依赖
#更新pip工具 pip3 install --upgrade pip #安装缺少的setuptools-rust依赖 pip3 install setuptools-rust