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

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.

主站蜘蛛池模板: 聂拉木县| 白河县| 墨脱县| 巍山| 安平县| 南澳县| 吉木萨尔县| 白河县| 金湖县| 阳谷县| 南皮县| 岳西县| 雷山县| 清镇市| 西宁市| 松溪县| 英德市| 丽江市| 深水埗区| 怀仁县| 凌海市| 绩溪县| 政和县| 上虞市| 揭东县| 上饶市| 武强县| 皋兰县| 左云县| 屏东市| 两当县| 凤翔县| 资阳市| 泰兴市| 石柱| 阿合奇县| 九龙县| 太仓市| 怀来县| 梁河县| 商河县|