在命令行中输入以下命令以验证pg_config是否可用: bash pg_config --version 如果命令成功执行并返回了版本信息,则说明pg_config已经正确配置并可用。 通过以上步骤,你应该能够解决“python pg_config executable not found”的问题。如果问题仍然存在,请检查每一步的执行情况,并确保没有遗漏任何细节。
PG_CONFIG是postgresql的配置文件,如果找不到可能是没有安装postgresql,或者配置文件位置不正确,或者没有该配置, 安装sudo pip3 install psycopg2是报错: PG_CONFIG Executable Not Found 检查发现没有安装postgresql, 通过:sudo apt-get install -y postgresql 安装后解决...
Error: pg_config executable not found. 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'. --- Command python s...
note:This error originates from a subprocess,and is likely not a problemwithpip...Error:pg_config executable not found. 错误分析: 缺少依赖:psycopg2库依赖于PostgreSQL开发库,而系统中缺少pg_config工具。 四、正确代码示例 为了解决上述问题,我们可以先安装缺少的系统依赖,然后再安装Python库。以下是在Ubuntu...
Error: pg_config executable not found. ld: library not found for -lssl 1. 2. 3. 安装 # 下载 wget -O psycopg2-2.8.6.tar.gz https://files.pythonhosted.org/packages/fd/ae/98cb7a0cbb1d748ee547b058b14604bd0e9bf285a8e0cc5d148f8a8a952e/psycopg2-2.8.6.tar.gz ...
linux 装python库psycopg出错:Error: pg_config executable not found 需要安装postgresql-devel插件 yum install postgresql-devel* 再继续安装就没问题了
python-psycopg2: pg_config executable not found #22385 Closed BKPepe opened this issue Oct 13, 2023· 2 comments Comments Member BKPepe commented Oct 13, 2023 Maintainer: @dddaniel Environment: OpenWrt master, aarch64_cortex-a53 Description: * Getting build dependencies for wheel... run...
Error: pg_config executable not found. 1. 这是因为缺少 PostgreSQL 的开发文件,无法找到 pg_config 程序。 解决方法: 对于Windows 用户,可以下载 PostgreSQL 的预编译二进制包,并在安装过程中选择安装开发文件。 对于Ubuntu 或 Debian 用户,可以运行以下命令来安装 PostgreSQL 的开发文件: ...
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...
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 ... ...