Skip to content

Instantly share code, notes, and snippets.

@dwayne
Last active December 16, 2015 09:39
Show Gist options
  • Save dwayne/5414235 to your computer and use it in GitHub Desktop.
Save dwayne/5414235 to your computer and use it in GitHub Desktop.
Python Development

Setup pip and virtualenv in Ubuntu 12.04 LTS

Pip requires distribute. So we'd install distribute first.

$ cd Downloads/
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py

Now we can install pip.

$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ sudo python get-pip.py

Let's install virtualenv globally with pip.

$ sudo pip install virtualenv
$ subl ~/.virtualenv/virtualenv.ini

Add the following into the .ini file:

[virtualenv]
distribute = true
@dwayne
Copy link
Author

dwayne commented Apr 18, 2013

If you need to get PostgreSQL setup for django or django-cms for example, then the instructions here can help.

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