Create a virtualenv for the person: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
(Created page with '== Install the virtualenv package == sudo apt-get install python-virtualenv == Create a virtualenv == virtualenv ~/env == Activate it == source ~/env/bin/activate You sh…')
 
imported>Paulproteus
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


sudo apt-get install python-virtualenv
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 ==
== 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