是否有可能安装psycopg2到virtualenv当我的开发系统的MacBook Pro与OS X 10.6没有安装PostgreSQL的?
当我pip install psycopg2在我的内部运行时virtualenv,我收到了下面显示的错误.
我正在尝试使用Django连接到服务器上的遗留数据库,如果可能的话,我宁愿不在我的开发系统上安装PostgreSQL.
使用自制软件安装PostgreSQL时收到错误.我在我的MacBook Pro上安装了Xcode4并且只安装了Xcode4,我认为这与缺少gcc 4.0有关.但是,这是另一个StackOverflow问题的问题.
更新于2011年4月12日上午8:37:我仍然想知道如果不在我的MacBook Pro上安装PostgreSQL就可以实现这一点.然而,我跑了brew update并强迫重新安装ossp-uuid,brew install --force ossp-uuid现在可行brew install postgresql.随着PostgreSQL的成功安装,我能够pip install psycopg2从我的virtualenv中获得.
pip install psycopg2$ pip install psycopg2
Downloading/unpacking psycopg2
Running setup.py egg_info for package psycopg2
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py …Run Code Online (Sandbox Code Playgroud)