小编wan*_*mer的帖子

Heroku 上的 Python 入门 - 找不到 pg_config 可执行文件

我一直在关注文档,直到我安装了 requirements.txt 文件。尝试安装第 6 行“psycopg2==2.5.3”时总是失败。这是消息——

Downloading/unpacking psycopg2==2.5.3 (from -r requirements.txt (line 6))
Downloading psycopg2-2.5.3.tar.gz (690kB): 690kB downloaded
Running setup.py (path:/Users/pimpc/Sites/python/herokudemo/python-getting-started/venv/build/psycopg2/setup.py) egg_info for package 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'.
Complete output from command python setup.py egg_info:
running egg_info

creating pip-egg-info/psycopg2.egg-info

writing pip-egg-info/psycopg2.egg-info/PKG-INFO

writing top-level names to
pip-egg-info/psycopg2.egg-info/top_level.txt

writing …
Run Code Online (Sandbox Code Playgroud)

python postgresql heroku

5
推荐指数
1
解决办法
1609
查看次数

标签 统计

heroku ×1

postgresql ×1

python ×1