martes, 29 de noviembre de 2011

installing psycopg2 in Webfaction

If you use webfaction and you'r machine name is Web300 and above(Web301, Web302, etc) and you want to install psycopg2 you'll need
nano ~/.bashrc
Paste this
export PATH=/usr/pgsql-9.1/bin/:$PATH
Now hit ctrl+o and then ctrl+x
Now on the terminal export the path again
export PATH=/usr/pgsql-9.1/bin/:$PATH
And when you do
easy_install psycopg2
or
pip install psycopg2
It won't complain about pg_config executable missing.

No hay comentarios:

Publicar un comentario