Python 在哪里可以找到pg_配置?
我正在机器上安装Python 在哪里可以找到pg_配置?,python,postgresql-9.1,psycopg2,Python,Postgresql 9.1,Psycopg2,我正在机器上安装psycopg2。我为10.6OSX安装了Postgre9.x的dmg文件。安装psycopg2时,它会显示缺少pg_config。如何设置路径?pg\u config位于已安装的应用程序中。如果临时将其所在的目录添加到$PATH,则安装程序可以找到它 $ PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH" pip install --user psycopg2 Downloading/unpacking ps
psycopg2
。我为10.6OSX安装了Postgre9.x的dmg文件。安装psycopg2时,它会显示缺少pg_config
。如何设置路径?pg\u config
位于已安装的应用程序中。如果临时将其所在的目录添加到$PATH
,则安装程序可以找到它
$ PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH" pip install --user psycopg2
Downloading/unpacking psycopg2
...
Successfully installed psycopg2
Cleaning up...
没有所谓的“Postgre9.x”。根据你的标签,我猜你指的是PostgreSQL 9.1?你到底是如何安装的,从哪里安装的?你是说Postgres.app吗?这是我做ls时发现的。没有具有该名称的应用程序:应用程序堆栈生成器。应用程序文档重新加载配置。应用程序SQL Shell(psql)。应用程序pgAdmin III.app