【问题标题】:Elastic Beanstalk - Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1Elastic Beanstalk - 命令“/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt”返回非零退出状态 1
【发布时间】:2020-10-10 13:31:44
【问题描述】:

尝试使用 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

【问题讨论】:

    标签: python amazon-web-services pip amazon-elastic-beanstalk


    【解决方案1】:

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

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

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

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

    【讨论】:

      猜你喜欢
      • 2020-10-09
      • 2017-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-09
      • 2021-12-04
      • 2021-02-15
      • 2021-12-14
      相关资源
      最近更新 更多