- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在安装 psycopg2 时遇到问题。当我尝试 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_config option in 'setup.cfg'.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2
但问题是 pg_config
实际上在我的 PATH
中;它运行没有任何问题:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
我尝试将 pg_config 路径添加到 setup.cfg
文件并使用我从他们的网站 (http://initd.org/psycopg/) 下载的源文件构建它,但我收到以下错误消息!
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
但它确实存在!!!
我对这些错误感到困惑。有人可以帮忙吗?
顺便说一句,我 sudo
所有命令。我也在 RHEL 5.5 上。
最佳答案
pg_config
在 postgresql-devel
中(libpq-dev
在 Debian/Ubuntu 中,libpq-devel
在Centos/Fedora/Cygwin/Babun.)
关于python - 找不到 pg_config 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36398690/
我在 Mac 上使用 PostgreSQL 在 Rails 3 中构建应用程序... PostgreSQL 工作正常,但在命令行中出现以下错误: $ pg_config -bash: pg_confi
我正在尝试设置 saleor(基于 Django)。我按照网站上的说明做了“python -m pip install -r requests.txt”。一切进展顺利,直到安装 Collecting
我面临着与 I'm trying to install psycopg2 onto Mac OS 10.6.3; it claims it can't find "stdarg.h" but I ca
我在安装 psycopg2 时遇到问题。当我尝试 pip install psycopg2 时出现以下错误: Error: pg_config executable not found. Please
我在安装 psycopg2 时遇到问题。当我尝试 pip install psycopg2 时出现以下错误: Error: pg_config executable not found. Please
这里是新手,正在尝试设置 Django 以使用 PostgreSQL。 我使用的是 mac osx 10.6.8。我还安装了 PostgreSQL 9.3 当我在终端中运行 pip install p
我在安装 psycopg2 时遇到问题。当我尝试 pip install psycopg2 时出现以下错误: Error: pg_config executable not found. Please
默认情况下,我在两台 ubuntu 14 机器上安装了 postgres 10 版本,但我在两台机器上安装了 postgres 9.6。 但是在其中一个上 pg_config 给我: VERSION
我尝试从 this site 安装 psycopg2(PostgreSQL 数据库适配器) ,但是当我在 cd 进入包并写入 后尝试安装时 python setup.py install 我收到以下错
我通过 postgresql 图形安装程序 ( http://www.postgresql.org/download/macosx/ ) 在我的 macbook 上安装了 postgresql。现在我
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/markhoyt/.rvm/rubies/ruby-
在 nixos 上,当尝试使用 $ stack --nix build 构建我的项目时,我遇到了以下错误。 $ stack --nix build ... Linking /run/user/1000
我使用 waf作为我的构建系统,我想使用 Postgres 编译一个小的 C 程序。我在我的程序中包含了 postgres.h,所以我需要在我的 wscript 文件中找到它的路径。我知道我可以通过运
所以这就是我的目标:获取一个导入 pgdb 的 .py 文件来运行。 为此,据我所知,我需要 PygreSql。 我同时安装了 postgresql 9.4.4 和 python 2.7.9(带有源代
尝试为我的 python Flask 应用程序安装驻留在 Azure 上的 postgresql 数据库;但是psycopg2包的安装需要安装postgresql时附带的pg_config文件。那么如
我正在尝试从源构建 Postgresql 8.3.1(稍后我需要在其上运行扩展补丁)。尽管如此,src/tutorial 并没有生成 $make make: pg_config: Command no
我有一个在 Elastic Beanstalk 上使用 PostgreSQL 的 Django 项目。 我在部署时发现了下一个错误: Error: pg_config executable not f
我正在使用 PipelineDB,它是 Postgresql 的一个自定义但兼容的分支。我想将 plpythonu.control 安装到其中,以便能够将 PL/Python 用于用户定义的函数。 我
我正在测试 AWS 以启动网络服务。我坚持使用 pg_config。错误日志为 /app/requirements.txt (line 1)) Using cached psycopg2-2.6.2.
我正在学习如何将 Postgres 与 Python (sqlalchemy) 结合使用。我在安装 psycopg2 时卡住了。我有以下错误: 找不到 pg_config 可执行文件错误 我知道这是一
我是一名优秀的程序员,十分优秀!