Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created December 22, 2016 19:27
Show Gist options
  • Save guyhughes/8c3d70cade94444a734558ad2df7639e to your computer and use it in GitHub Desktop.
Save guyhughes/8c3d70cade94444a734558ad2df7639e to your computer and use it in GitHub Desktop.
virtualenvwrapper quickstart

virtualenvwrapper has broken dependencies right now on macOS, so install like this:

sudo pip install pbr
sudo pip install --no-deps stevedore
sudo pip install --no-deps virtualenvwrapper

So that the commands mkvirtualenv and workon stay in your shell, you're going to want to do this (if you use zsh or another shell, change the filename here):

echo "source /usr/local/bin/virturalenvwrapper.sh" >> ~/.bashrc
source ~/.bashrc

Make your first virtualenv

mkvirtualenv test

This creates and activates the 'test' virtualenv.

When you're done, you can:

deactivate

Just like any other virtualenv, to get out of it.

Later when you want to work on it, you can

workon test
@praveen-symphony
Copy link

In the line:
echo "source /usr/local/bin/virturalenvwrapper.sh" >> ~/.bashrc
Fix the spelling from virturalenvwrapper to virtualenvwrapper.

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