官术网_书友最值得收藏!

Python PyPI installation

To be able to install Ansible using PyPI, we first need to have PyPI installed. It can be easily installed using most package managers, some of which are outlined in the following section.

The Red Hat Yum installation is implemented as follows:

sudo yum install -y python-pip

The Debian APT installation uses the following command:

sudo apt install -y python-pip

For other Linux systems, using Python:

sudo easy_install pip

The Mac OS X Homebrew installation is as follows:

brew install python-pip

From the PyPI repository, by having PyPI installed:

sudo pip install ansible

We can also use a GitHub source to get the latest development version:

sudo pip install git+https://github.com/ansible/ansible.git@devel
To choose a specific version of Ansible using PyPI, we can use the following command: sudo pip install ansible==2.4.0. To upgrade the latest version, we can add the  --upgrade option so the command looks as follows: sudo pip install ansible --upgrade.

主站蜘蛛池模板: 申扎县| 兴安县| 禄丰县| 密云县| 台湾省| 贺兰县| 棋牌| 澄迈县| 鸡东县| 车险| 惠东县| 和平县| 望都县| 太康县| 鄂托克旗| 洪湖市| 故城县| 邵阳县| 宁夏| 汉阴县| 筠连县| 呼伦贝尔市| 延川县| 哈尔滨市| 理塘县| 来宾市| 玉山县| 水城县| 津市市| 崇信县| 丹棱县| 仲巴县| 凌源市| 桂阳县| 桑植县| 凤凰县| 招远市| 徐闻县| 富阳市| 长治县| 桂林市|