1)换源:
在~/.pip/pip.conf文件中添加或修改
mkdir ~/.pip
cat > pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
- easy_install virtualenv
- 下载安装pipsi
下载:https://github.com/mitsuhiko/pipsi
安装:python setup.py install
4)安装
yum install gcc
yum install python-devel
5) 安装ansible
pipsi install ansible
默认二进制路径
Linked script /root/.local/bin/ansible
Linked script /root/.local/bin/ansible-config
Linked script /root/.local/bin/ansible-connection
Linked script /root/.local/bin/ansible-console
Linked script /root/.local/bin/ansible-doc
Linked script /root/.local/bin/ansible-galaxy
Linked script /root/.local/bin/ansible-inventory
Linked script /root/.local/bin/ansible-playbook
Linked script /root/.local/bin/ansible-pull
Linked script /root/.local/bin/ansible-vault