我需要你的帮助,安装psycopg2
上的MAC。
我已经安装的
Anaconda environment
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. 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'.
我读过许多文章,他们建议在安装$PATH
之前提供psycopg2
,但问题在于Postgres.app
没有创建pg_config
目录:
/Users/konstantin_klychkov/Library/Application支持/Postgres/var-12
发布于 2020-02-05 07:16:22
问题在于/Users/konstantin_klychkov/Library/Application
/Postgres/var-12 Postgres.app没有创建pg_config目录
我想你可能找错地方了。pg_config
不是目录,而是程序。尝试将/Applications/Postgres.app/Contents/Versions/12/bin
放入您的$PATH
中
$ ls /Applications/Postgres.app/Contents/Versions/12/bin | grep pg_config
pg_config
https://stackoverflow.com/questions/60063650
复制相似问题