(venv)C:\ Users \ PC \ PycharmProjects \ django> pip安装psycopg2 收集psycopg2 使用缓存的https://files.pythonhosted.org/packages/a8/8f/1c5690eebf148d1d1554fc00ccf9101e134636553dbb75bdfef4f85d7647/psycopg2-2.8.5.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”
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
<https://www.psycopg.org/docs/install.html>).
----------------------------------------
命令“ python setup.py egg_info”失败,错误代码为1:C:\ Users \ PC \ AppData \ Local \ Temp \ pip-install-sqnboffp \ psycopg2 \