Skip to content

Instantly share code, notes, and snippets.

@winhamwr
Forked from hugs/virtualenv.txt
Created February 24, 2010 20:14
Show Gist options
  • Save winhamwr/313795 to your computer and use it in GitHub Desktop.
Save winhamwr/313795 to your computer and use it in GitHub Desktop.
Now with virtualenvwrapper goodness
# Install virtualenv
sudo pip install virtualenv
# Install virtualenvwrapper
sudo pip install virtualenvwrapper
# Configure virtualenvwrapper
echo "export WORKON_HOME=$HOME/.virtualenvs" | tee -a ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper_bashrc" | tee -a ~/.bashrc
source ~/.bashrc
# Create the virtual environment and switch to it
mkvirtualenv sandbox
# Play around with Python inside the new 'sandbox'
python
# Build and install my code in the sandbox:
python setup.py build install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment