CentOS6.4中安装Python-Pip 以及Phyton gevent
时间:2015-07-12 02:15 来源:linux.it.net.cn 作者:IT
一、安装Phyton-pip
首先要安装 Setuptools
wget --no-check-certificate https://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
sudo sh ./setuptools-0.6c11-py2.6.egg
安装PIP
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz
tar -zxvf ./pip-1.4.tar.gz
cd pip-1.4
sudo python setup.py install
二、安装Phyton Gevent
方式一:
sudo pip install gevent gevent-websocket
方式二:请参见:
PYTHON GEVENT INSTALL FOR CENTOS
gevent 安装
1.安装libevent
# wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz
# tar zxf libevent-2.0.19-stable.tar.gz
# cd libevent-2.0.19-stable
# ./configure
# make
# make install
# cp /usr/local/lib/libevent* /usr/lib/
2. 安装greenlet
# easy_install greenlet
3.安装gevent
# wget https://github.com/downloads/SiteSupport/gevent/gevent-1.0rc1.tar.gz
# tar zxvf gevent-1.0rc1.tar.gz
# cd gevent-1.0rc1
# python setup.py install
(责任编辑:IT)
一、安装Phyton-pip 首先要安装 Setuptools wget --no-check-certificate https://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg sudo sh ./setuptools-0.6c11-py2.6.egg 安装PIP wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz tar -zxvf ./pip-1.4.tar.gz cd pip-1.4 sudo python setup.py install 二、安装Phyton Gevent 方式一: sudo pip install gevent gevent-websocket
方式二:请参见: |