Virtualenv cheetsheet

Category: /knowledge /django
Tags: django

My blog

Virtualenv

Install package

sudo aptitude install python-virtualenv  

Generate an environment

virtualenv --system-site-packages $site

Install packages

pip install html5lib markdown pygments web.py=0.36

requirements.txt

pip freeze > requirements.txt
pip install -r requirements.txt

virtualenvwrapper

Install package

 sudo aptitude install virtualenvwrapper

List all virtual env

workon

Switch to one env, TAB completion is available

workon some_env

评论

提示

  • 如果看不到评论部分, 请暂时关掉adblock in Firefox/Chrome
  • 本网站使用Javascript实现评论功能, 此处外链对提高您的网站PR没有帮助. (潜台词: 请不要灌水, 谢谢)