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: