-
Notifications
You must be signed in to change notification settings - Fork 0
Python and related tools
(This is essential for building tools depending on Python)
Run:
apt-get install python-dev
Run:
apt-get install python-setuptools
Now, you will have the script `easy_install' ready.
Just do:
easy_install virtualenv
and, virtualenv is ready!
Test this out:
virtualenv --no-site-packages pyland
This will create a new directory called `pyland' which will be our virtual environment
After changing over to the directory corresponding to the "virtual environment", execute:
source bin/activate
This will `activate' the virtual environment.
Download latest version from here: http://initd.org/psycopg/download/
The psycopg2 home page does not recommend installation using `easy_install'. So we build from source.
Here are the steps:
cd pyland (the virtual environment)
source bin/activate
mkdir src; tar xvf psycopg2-2.4
cd psycopg2-2.4
python setup.py install
Download latest stable version from here: http://www.sqlalchemy.org/download.html
Extract the source under the virtual environment and build (as explained above for psycopg2)