找不到pg_config可执行文件。在安装psycpog2 == 2.5.1时

时间:2019-01-10 19:14:50

标签: python python-3.x postgresql psycopg2

当我安装psycpog2 == 2.5.1时,它给我一个错误

错误:找不到pg_config可执行文件。

建议的解决方案:- 尝试从系统终端运行此命令。确保使用正确的版本的“ pip”,该版本是为位于“ C:\ python \ python.exe”的Python解释器安装的。

命令输出:是 收集psycopg2 == 2.5.1   使用缓存的https://files.pythonhosted.org/packages/22/09/63d5da7375c267e208bbadf56b51699d85cb7b3a9096817eeea500a27b3b/psycopg2-2.5.1.tar.gz     来自命令python setup.py egg_info的完整输出:     运行egg_info     创建pip-egg-info \ psycopg2.egg-info     编写pip-egg-info \ psycopg2.egg-info \ PKG-INFO     将dependency_links写入pip-egg-info \ psycopg2.egg-info \ dependency_links.txt     将顶级名称写入pip-egg-info \ psycopg2.egg-info \ top_level.txt     编写清单文件“ pip-egg-info \ psycopg2.egg-info \ SOURCES.txt”     错误:找不到pg_config可执行文件。

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'.

----------------------------------------

命令“ python setup.py egg_info”在C:\ Users \ RAJPAT〜1 \ AppData \ Local \ Temp \ pycharm-packaging \ psycopg2 \中失败,错误代码为1

enter image description here

如何解决此错误(Windows10) 我正在使用pycharm(ide)

0 个答案:

没有答案
相关问题