Answers:
由于psycopg2需要pg_config,我只需要在CentOS 6服务器上安装它。嘘呀:
yum install postgresql-devel
更新资料
如果仍然遇到pg_config的问题,则可能需要将其添加到PATH中,例如:
export PATH=$PATH:/usr/pgsql-x.x/bin
其中xx是您的版本,例如/usr/pgsql-9.2./bin。
-install-option
有pip install
,然后我意识到我在做须藤PIP安装。
是libpqxx
:
Name : libpqxx-devel
Arch : x86_64
Version : 2.6.9
Release : 3.el5.rf
Size : 1.4 M
Repo : rpmforge
Summary : Header files, libraries and development documentation for libpqxx.
URL : http://pqxx.org/
License : BSD
Description: This package contains the header files, static libraries and development
: documentation for libpqxx. If you like to develop programs using libpqxx,
: you will need to install libpqxx-devel.
# yum install libpqxx-devel
xx
意味着C++
。