针对你遇到的问题 pip3 install psycopg2 error: pg_config executable not found,我们可以按照以下步骤进行解决: 确认pg_config未找到的错误信息: 这个错误信息表明在安装psycopg2时,系统无法找到pg_config工具。pg_config是PostgreSQL提供的一个工具,用于获取PostgreSQL的安装配
pip install psycopg2 如果仍然出现“Error: pg_config executable not found.”的错误,那么可能是你的Python环境与PostgreSQL版本不兼容。你可以尝试创建一个新的Python虚拟环境,并在这个新环境中安装psycopg2。以下是创建新的Python虚拟环境的步骤: # 安装virtualenv库(如果还没有安装) pip install virtualenv # 创建一...
问错误: pg_config可执行文件找不到我试图用python3.7实现pip3 psycopg2EN如果有下面的异常信息,则先安装postgresql-devel* yum install postgresql-devel* 再安装 pip3 install psycopg2 异常: Collecting psycopg2 Using cached psycopg2-2.8.6.tar.gz (383 kB) ERROR: Command errored out with exit ...
如果有下面的异常信息,则先安装postgresql-devel* yum install postgresql-devel* 再安装 pip3 install ...
pip install psycopg 我得到了一个错误片段: 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 opt...
尝试执行以下操作时出现以下错误pip install psycopg2: 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_...
PG_CONFIG是postgresql的配置文件,如果找不到可能是没有安装postgresql,或者配置文件位置不正确,或者没有该配置, 安装sudo pip3 install psycopg2是报错: PG_CONFIG Executable Not Found 检查发现没有安装postgresql, 通过:sudo apt-get install -y postgresql 安装后解决...
pip 安装 psycopg2 安装及错误 现象: Error:pg_config executablenotfound. Please add the directory containing pg_configtothe PATHorspecify the full executable pathwiththeoption: python setup.py build_ext --pg-config /path/to/pg_config build ...orwiththe pg_configoptionin'setup.cfg'.Complete out...
我也试过“sudo pip install psycopg2”,我得到了同样的信息。 阅读完文档后,它要求查看 setup.cfg 文件(位于下方): [build_ext] define= # PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower) # HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4 ...
则先安装postgresql-devel* yum install postgresql-devel* 再安装 pip3 install psycopg2 异常: ...