Thursday, May 10, 2012

[ubuntu] Virtualenv

Install
sudo apt-get install virtualenv
OR
easy_install virtualenv

Create environment
virtualenv <folder name>

Create clean environment
virtual --no-site-packages <folder name>

Activate environment
source <folder name>/bin/activate

Deactivate environment
deactivate

Note: you can create your environment in any directory as long as you activate it using the right directory path

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...