安装virtualenv的脚本
sudo apt-get install pip
sudo pip install virtualenv virtualenvwrapper
cd
mkdir .virtualenvs
echo "export WORKON_HOME=$HOME/.virtualenvs" >> .bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> .bashrc
source .bashrc
创建新的环境:mkvirtualenv envName
参考文章:
Ubuntu下面软件的安装【解决包的依赖问题】
【python工具篇】virtualenv和virtualenvwrapper
Python的虚拟环境virtualenv
FAQ:
InsecurePlatformWarning: A true SSLContext object is not available.
sudo apt-get install libffi-dev libssl-dev
pip install sphinx pyopenssl ndg-httpsclient pyasn1
python安装包的管理.
导出:
pip freeze > pip.li
导入:
pip -r install pip.li