Skip to content

Instantly share code, notes, and snippets.

@happysundar
Created August 8, 2013 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happysundar/6180919 to your computer and use it in GitHub Desktop.
Save happysundar/6180919 to your computer and use it in GitHub Desktop.
useful virtualenv/virtualenvwrapper commands

Use https://github.com/saghul/pythonz to install different versions of python

To install virtualenv, virtualenvwrapper et all natively (i.e, on the python "system" path of the machine), do a :

curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL
mkvirtualenv -p ~/.pythonz/pythons/CPython-2.7.5/bin/python ~/VEnvs/MyProject
mkvirtualenv -p ~/.pythonz/pythons/CPython-2.7.5/bin/python -a ~/Rovi -r ./requirements.txt rovi

create a virtual env

 mkvirtualenv <venv_name>

change into the virtual env root dir

 cdvirtualenv <venv_name>

Switch into a virtual env

 workon <venv_name>

Change into the project directory, and then run..

This will change into the project directory while you select the working virtual environment (do a workon)

 setvirtualenvproject 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment