【发布时间】:2021-10-31 21:02:14
【问题描述】:
我已经安装了 PostgreSQL。我想我需要在windows上安装libpq-dev来解决这个问题,但是如何安装呢?
命令 python setup.py egg_info 的完整输出: 运行 egg_info 创建 pip-egg-info\psycopg2_binary.egg-info 写 pip-egg-info\psycopg2_binary.egg-info\PKG-INFO 将 dependency_links 写入 pip-egg-info\psycopg2_binary.egg-info\dependency_links.txt 将顶级名称写入 pip-egg-info\psycopg2_binary.egg-info\top_level.txt 编写清单文件 'pip-egg-info\psycopg2_binary.egg-info\SOURCES.txt'
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'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).
【问题讨论】:
标签: python postgresql dll