Create a virtualenv for the person: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
imported>Paulproteus
 
Line 6: Line 6:


sudo apt-get install python-setuptools
sudo apt-get install python-setuptools
easy_install virtualenv
sudo easy_install virtualenv


== Create a virtualenv ==
== Create a virtualenv ==

Latest revision as of 23:36, 4 March 2011

Install the virtualenv package

sudo apt-get install python-virtualenv

If that doesn't work, try:

sudo apt-get install python-setuptools
sudo easy_install virtualenv

Create a virtualenv

virtualenv ~/env

Activate it

source ~/env/bin/activate

You should now see

(env) at the start of your shell prompt. Look for that!

Upgrade Django

pip install --upgrade django