码迷,mamicode.com
首页 > 移动开发 > 详细

virtualenv&virtualenvwrapper on Windows&Ubuntu

时间:2016-03-08 21:55:49      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:环境

pip install virtualenv

pip install virtualenvwrapper-win

lsvirtualenv

mkvirtualenv env27

deactivate

mkvirtualenv -p C:\Python35\python.exe env35

deactivate

workon env35


----------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------


pip install virtualenv

pip install virtualenvwrapper

mkdir $HOME/.virtualenvs

vim ~/.bashrc

添加:

export WORKON_HOME=$HOME/.virtualenvs

source /root/local/bin/virtualenvwrapper.sh

保存返回

source ~/.bashrc

workon

lsvirtualenv

mkvirtualenv env27

deactivate

cd ../

mkdir /download

cd /download

wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

tar -zxvf Python-3.5.0.tgz

mkdir ~/python35

cd Python-3.5.0/

./configure --prefix=/root/python35

make

make install

cd ~/.virtualenvs/

mkvirtualenv -p /root/python35/bin/python3.5 env35

deactivate



virtualenv&virtualenvwrapper on Windows&Ubuntu

标签:环境

原文地址:http://maxvision.blog.51cto.com/6269192/1748709

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!