【问题标题】:I got this error when i'm tring to install libraries using requirements.txt file #Django当我尝试使用 requirements.txt 文件#Django 安装库时出现此错误
【发布时间】:2019-09-22 19:27:57
【问题描述】:

无法安装 google-api-core

virtualenv venv 源 venv/bin/激活 pip install -r requirements.txt

错误:google-api-core 1.10.0 有需求请求=2.18.0,但您将有不兼容的请求 2.11.1。

Screenshot

【问题讨论】:

  • 可以分享requirements.txt文件吗?

标签: django amazon-web-services amazon-ec2 requirements.txt


【解决方案1】:

您在 requirements.txt 文件中指定了 requests==2.11.1,并且如错误所示,google-api-core 需要 2.18.0 或更高版本。

我建议您升级项目正在使用的请求版本并在尝试添加 google-api-core 之前先对其进行测试。

或者更改 requirements.txt 以指定 requests>=2.11.1 或者使用 ~=“兼容”运算符。

【讨论】:

    猜你喜欢
    • 2020-04-23
    • 2021-08-25
    • 2017-03-09
    • 1970-01-01
    • 2021-09-12
    • 2016-04-03
    • 2014-05-01
    • 2017-06-16
    • 1970-01-01
    相关资源
    最近更新 更多