Install Python-Pip and Fabric in CentOS/Ubuntu

Source: Internet
Author: User
Tags centos server

Install Python-Pip and Fabric in CentOS/Ubuntu

Recently, newsblur has been being deployed. You need to use fabric to deploy several Remote Server clusters. However, fabric must be installed using pip and other tools. For CentOS server version, pip must be installed first.

Pip is a tool that can replace easy_install to install and manage python software packages. We recommend using pip to install and manage software packages.

Fabric is a lightweight remote maintenance tool that uses SSH to connect to and manage remote hosts. It is very effective for batch execution of remote scripts.

This article introduces how to install Python-Pip and Fabric based on CentOS/Ubuntu. I hope this tutorial will be helpful to you.

1. Install setuptools and Python2.7

Source code

Wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Sh setuptools-0.6c11-py2.7.egg

2. Install pip. The latest version is 1.4. Here we use version 1.3 as an example.

Wget http://pypi.python.org/packages/source/p/pip/pip-1.3.tar.gz
Tar zxvf pip-1.3.tar.gz
Cd pip-1.3
Python setup. py install

Or use pip's installation script get-pip.py.

Wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
Python get-pip.py

3. Use pip to install fabric

Pip install fabric

Later CentOS versions can use YUM

Yum install python-setuptools
Easy_install pip
Pip install fabric

You can also install

Apt-get install python-setuptools
Easy_install pip
Pip install fabric

Use Vagrant and Fabric for Integration Testing

Fabric: Python Remote Deployment Tool

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.