Tuesday, March 2, 2010

virtualenv

I kept getting back to virtualenv and every time I would totally forget how to go about it and had to start googling. Every time. Frustrating. This is usually when Plone is involved.

So.

$ sudo apt-get install python-virtualenv
$ virtualenv -p /usr/bin/python2.4 /home/cawanpink/python2.4
$ source /home/cawanpink/python2.4/bin/activate
(python2.4)$ deactivate




That's

  • install

  • create the Python 2.4 virtual environment

  • activate the environment

  • to get out of the environment

1 comment:

  1. kagesenshi4/3/10 2:16 AM

    Or just grab the unified installer .. :P

    ReplyDelete