[Linux] redhat6安装python2.7后配置setuptools、pip

 

一、RedHat6.5安装python2.7见 [Linux] redhat安装ruby和gem详解

 

二、安装setuptools

命令行如下


$ wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
$ tar zxvf setuptools-1.4.2.tar.gz
$ cd setuptools-1.4.2
$ python setup.py install

如果遇到RuntimeError: Compression requires the (missing) zlib module,请看 [Linux] redhat安装ruby和gem详解

 

三、安装pip

从https://pypi.python.org/pypi/pip#downloads下载pip-9.0.1.tar.gz解压,然后安装命令行如下


python setup.py install

分类上一篇:     分类下一篇:

Leave a Reply