遇到“pg_config executable not found. pg_config is required to build psycopg2 from source”错误时,你可以按照以下步骤来解决问题: 确认pg_config是否已安装: 在命令行中运行以下命令来尝试查找pg_config: bash whereis pg_config # Linux/macOS find / -name pg_config 2>/dev/null # Linux which...
总之,pg_config是 PostgreSQL 数据库的一个配置文件,其中包含了许多用于连接到 PostgreSQL 数据库的参数。如果您想使用psycopg2库来连接到 PostgreSQL 数据库,则需要按照pg_config文件中的参数进行配置。
用python3 -m pip install psycopg2 -i https://mirrors.aliyun.com/pypi/simple/命令安装psycopg2模块时出现两个错误 错误1: Error:pg_config executable not found.pg_config is required to build psycopg2fromsource.Please add the directory containing pg_config to the $PATHor specify the full executable...
# PSYCOPG_DEBUG can be added to enable verbose debug information # "pg_config" is required to locate PostgreSQL headers and libraries needed to # build psycopg2. If pg_config is not in the path or is installed under a # different name uncomment the following option and set it to the pg_...
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 ... Additional information When installing psycopg2 there are...
由于连接的是EDB,需要pg的库psycopg2,当然能从官网进行下载(https://pypi.org/project/psycopg2/),...
writing manifest file'/tmp/pip-install-58o5cccu/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'Error:pg_config executable not found.pg_configisrequired to build psycopg2fromsource.Please add the directory containing pg_config to the $PATHor specify the full executable pathwiththe ...
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...
postgresql-devel* 再安装 pip3 install psycopg2 异常: Collecting psycopg2 Using cached psycopg2-2...
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...