Skip to content

Instantly share code, notes, and snippets.

@EverettBerry
Created June 29, 2015 23:09
Show Gist options
  • Save EverettBerry/3eac068adaa3c1d39b10 to your computer and use it in GitHub Desktop.
Save EverettBerry/3eac068adaa3c1d39b10 to your computer and use it in GitHub Desktop.
Python Dev Setup

Two global python packages are all that is really necessary:

sudo apt-get install python-pip
sudo pip install virtualenv

Start virtualenv (used Python3 in this case):

virtualenv <my env> --python=/usr/bin/python3
source <my env>/bin/activate

Save state of virtualenv:

pip freeze > requirements.txt

Install all packages from requirements.txt:

pip install -r requirements.txt

Kill virtualenv (after running source):

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