首页 > 解决方案 > Elastic Beanstalk - 命令“/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt”返回非零退出状态 1

问题描述

尝试使用 git 链接来安装 github 上的包。为此,我在 requirements.txt 文件中包含了以下行:

[-e] git+https://github.com/deribit/deribit-api-clients#egg=python

但是当我运行时出现以下错误eb deploy -v

CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1.

列出这样的要求的正确方法是什么?实例的 pip 版本为 9.0.3

标签: pythonamazon-web-servicespipamazon-elastic-beanstalk

解决方案


我使用以下格式成功安装了它requirements.txt

git+git://github.com/deribit/deribit-api-clients.git#egg=openapi-client&subdirectory=python

对于测试,我使用了 Python 3.6 Amazon Linux 1 EB 环境。

ps git是必需的,但我猜你已经在安装它了。


推荐阅读