Skip to content

Instantly share code, notes, and snippets.

@hhursev
Last active August 16, 2016 07:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhursev/43f6262bf9ba39d88a2f to your computer and use it in GitHub Desktop.
Save hhursev/43f6262bf9ba39d88a2f to your computer and use it in GitHub Desktop.
Setup virtualenv and virtualenvwrapper

Run the following:

sudo apt-get install -y python-pip &&
sudo pip install virtualenv==1.11.6 &&
sudo pip install virtualenvwrapper==4.3 &&
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc &&
mkdir ~/.virtualenvs &&
WORKON_HOME=~/.virtualenvs &&
source /usr/local/bin/virtualenvwrapper.sh

Afterwards create somewhere a (project) directory and you go like this:

cd /path/to/project-name
mkvirtualenv -a `pwd` -p `which python3` [project-name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment