Python path-pip installation, python path-pip
Pip is similar to yum in RedHat, and it is very convenient to install Python packages.
Pip installation method:
1. installation environment: ubuntu-14.04.2
sudo apt-get install python-pip python-dev build-essential sudo pip install --upgrade pip sudo pip install --upgrade virtualenv
2. installation environment: centos 6.6)
Wget -- no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gztar-zxf 1.5.5.tar.gzcd pip-1.5.5/python setup. py install then you can use pip to install other modules. For example, the following error is reported when executing pip install requests: Traceback (most recent call last): File "setup. py ", line 6, in <module> from setuptools import setup, find_packagesImportError: No module named setuptools solution: wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gztar zxvf setuptools-0.6c11.tar.gzcd setuptools-0.6c11python setup. py buildpython setup. py installtar zxvf setuptools-0.6c11.tar.gz; cd setuptools-0.6c11; python setup. py build; python setup. py install