Basic Virtualenv Commands


Activate virtualenv

$ source [environment dir]/bin/activate

Deactivate virtualenv

$ deactivate

Create requirements.txt

~ $ source [environment dir]/bin/activate
~ $ pip freeze > requirements.txt
~ $ deactivate

Install new environment from requirements.txt

~ $ source [environment dir]/bin/activate
~ $ pip install -r requirements.txt
~ $ deactivate

Create new virtualenv with distribute

$ virtualenv --distribute [environment dir]

More Information

comments powered by Disqus