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

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.

主站蜘蛛池模板: 两当县| 义马市| 海丰县| 弥渡县| 天全县| 龙川县| 隆尧县| 陈巴尔虎旗| 翼城县| 布拖县| 定襄县| 兴国县| 辽阳县| 蓬安县| 兴城市| 辉南县| 缙云县| 格尔木市| 木里| 文化| 鸡西市| 弋阳县| 富民县| 两当县| 延长县| 泾川县| 探索| 湟源县| 买车| 华宁县| 独山县| 洛川县| 红原县| 宜昌市| 保康县| 文登市| 布尔津县| 尚志市| 仙居县| 宁城县| 石楼县|