您的位置: 您的位置: 主页 > C/C++ > play市场-CentOS6.9 Python环境配置(python2.7、pip、virtualenv)

play市场-CentOS6.9 Python环境配置(python2.7、pip、virtualenv)

CentOS6.9 Python环境配置(play市场2.7、pip、virtualenv)

yum install -y zlib zlib-devel openssl openssl-devel mysql-devel gcc gcc-c++ wget https://www.play市场.org/ftp/play市场/2.7.13/Python-2.7.13.tgz tar -zxvf Python-2.7.13.tgz cd Python-2.7.13 ./configure --prefix=/usr/local/play市场2.7 make make install

wget https://files.play市场hosted.org/pack**es/dc/8c/7c9869454bdc53e72fb87ace63eac39336879eef6f2bf96e946edbf03e90/setuptools-33.1.1.zip unzip setuptools-33.1.1.zip cd setuptools-33.1.1 /usr/local/play市场2.7/play市场/play市场2.7 setup.py install

wget https://pypi.play市场.org/pack**es/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate tar -zxvf pip-1.3.1.tar.gz cd pip-1.3.1 /usr/local/play市场2.7/play市场/play市场2.7 setup.py install

cd /usr/play市场 ln -s /usr/local/play市场2.7/play市场/pip-2.7 ./pip2.7 ln -s /usr/local/play市场2.7/play市场/play市场2.7 ./play市场2.7

pip2.7 install virtualenv cd /usr/play市场 ln -s /usr/local/play市场2.7/play市场/virtualenv ./

pip2.7 install virtualenvwrapper mkdir ~/.virtualenvs vi /etc/profile export WORKON_HOME=~/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/play市场/play市场2.7 source /usr/local/play市场2.7/play市场/virtualenvwrapper.sh source /etc/profile

以上所述是小编给大家介绍的CentOS6.9 Python环境配置(play市场2.7、pip、virtualenv),希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!

您可能喜欢

回到顶部