python env

# 下载编译好的python(CentOS 6.5环境)
cd /usr/local
wget -O python.2.7.12.tar.gz http://static.opschina.org/uploads/20170304111843.tgz

# 安装virtual-env软件,并新建fabenv 作为python2.7.12的程序
yum install -y python-virtualenv
virtualenv -p /usr/local/python-2.7.12/bin/python /usr/local/fabenv
virtualenv -p /usr/local/python2.7/bin/python /usr/local/fabenv

python mirror

# ~/.pip/pip.conf
echo "
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/ 
[install]
use-mirrors = true
mirrors = http://pypi.douban.com/simple/ 
trusted-host = pypi.douban.com" > ~/.pip/pip.conf
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""