python - 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
解决方案
我使用以下格式成功安装了它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
是必需的,但我猜你已经在安装它了。
推荐阅读
- haskell - 为什么“修复”会占用这么多内存?
- javascript - reactjs中的类似组件的缓存
- php - 缩短对其他类中的属性的调用
- c++ - 如何在 c++ OOP 中显示我的 ID 姓名年龄
- javascript - 正则表达式在 JavaScript 中使用荣誉学(先生、小姐、夫人、大师)测试值
- ubuntu-16.04 - Leader Follower Ros 包
- python - 在 pandas 时间索引 DataFrame 中创建额外的列
- git - 如何在开发服务器中测试新功能
- c# - 在 C# 图形上绘制“位图”字体
- sql - 为什么我的 CREATE TABLE 语句会引发 ORA-00905:缺少关键字错误