python 虚环境部署

#!/bin/bash
yum install -y python-virtualenv.noarch
yum install -y git.x86_6
mkdir -p /home/himalayas/virtualenv/python2.6-sk
virtualenv  --python=/usr/bin/python2.6 /home/himalayas/virtualenv/python2.6-sk
source /home/himalayas/virtualenv/python2.6-sk/bin/activate
pip install tornado==2.4.1
pip install pymongo==2.6.3
pip install wsgiref==0.1.2
easy_install -i http://192.168.1.160:7070/simple asyncmongo==1.4-alpha-zy
chown -R himalayas.himalayas /home/himalayas/virtualenv


备注:

yum install -y python-virtualenv.noarch 这个操作是将virtualenv安装在python2.6的环境下,及时当前操作系统的python版本是2.7.5,安装完这个之后也会降级为2.6版本。

你可能感兴趣的:(python,virtualenv)