【发布时间】:2013-06-12 19:21:12
【问题描述】:
我正在尝试上传我的项目(在 python 中),该项目将 Psycopg2 用于 Amazon Elastic Beanstalk。我正在使用包含我的项目和 requirements.txt 文件的 zip 文件来执行此操作。
但我收到此错误:
下载/解压 psycopg2>=2.4.6(来自 -r /opt/python/ondeck/app/requirements.txt(第 3 行))运行 setup.py 包 psycopg2 的 egg_info 错误:找不到 pg_config 可执行文件。
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
如何在亚马逊上解决这个问题?
【问题讨论】:
-
你的 requirements.txt 文件是什么样的?
-
我的 requirements.txt 是:tornado>=2.0.0 httplib2>=0.8 psycopg2>=2.4.6
-
如果你运行
which pg_config会发生什么?
标签: python amazon-web-services psycopg2 amazon-elastic-beanstalk