pip - Installing psycopg2 into virtualenv when PostgreSQL is not installed on development system -
is possible install psycopg2
virtualenv
when postgresql isn't installed on development system—macbook pro os x 10.6?
when run pip install psycopg2
within virtualenv
, received error shown below.
i'm trying connect legacy database on server using django, , i'd prefer not install postgresql on development system if possible.
why not install postgresql?
i received error when installing postgresql using homebrew. have xcode4—and xcode4—installed on macbook pro , thinking it's related missing gcc 4.0. however, problem stackoverflow question.
update 8:37 on april 12, 2011: i'd still know if possible without installing postgresql on macbook pro. however, ran brew update
, forced reinstallation of ossp-uuid brew install --force ossp-uuid
, brew install postgresql
works. postgresql installed, able pip install psycopg2
within virtualenv.
error pip install psycopg2
$ pip install psycopg2 downloading/unpacking psycopg2 running setup.py egg_info package psycopg2 error: pg_config executable not found. please add directory containing pg_config path or specify full executable path option: python setup.py build_ext --pg-config /path/to/pg_config build ... or pg_config option in 'setup.cfg'. complete output command python setup.py egg_info: running egg_info writing pip-egg-info/psycopg2.egg-info/pkg-info writing top-level names pip-egg-info/psycopg2.egg-info/top_level.txt writing dependency_links pip-egg-info/psycopg2.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found error: pg_config executable not found. please add directory containing pg_config path or specify full executable path option: python setup.py build_ext --pg-config /path/to/pg_config build ... or pg_config option in 'setup.cfg'. ---------------------------------------- command python setup.py egg_info failed error code 1 storing complete log in /users/matthew/.pip/pip.log
preliminary research
below articles read preliminary research:
psycopg depends on pg_config
command, , if don't have it, can't install psycopg.
if system installation problem you, why don't try compiling postgresql , including generated bin files in $path? like:
export path=/path/to/compiled/postgresql/bin:"$path" pip install psycopg2
Comments
Post a Comment