我想将我的Django应用程序连接到Amazon RDS for PostgreSQL数据库。
现在安装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 build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
我在CentOS7上。
我试过了:
$ yum install postgresql-libs
$ yum install python-psycopg2
安装了这些软件包,但在尝试pip install pyscopg2之后仍然遇到同样的错误。