【问题标题】:Django/Python requirements.txt issue with DigitalOceanDigitalOcean 的 Django/Python requirements.txt 问题
【发布时间】:2021-12-26 19:38:31
【问题描述】:

我已经设置了一个 Ubuntu 18 droplet。当我安装我的 django 项目需求时,我遇到了一些包的问题 - 例如:

ERROR: Could not find a version that satisfies the requirement anyjson==0.3.3 
(from versions: 0.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3, 0.3.1, 0.3.2, 0.3.3)
ERROR: No matching distribution found for anyjson==0.3.3

这令人困惑,因为列出的版本是“来自版本”列表。

以前有人遇到过这个吗?

【问题讨论】:

  • 你能把你的requirements.txt贴在这里吗?

标签: python django ubuntu digital-ocean


【解决方案1】:

这是因为您尝试使用 Python3 安装 Python2 包。

建议尝试使用Python2安装如下:

(Python 2)pip install -r requirements. txt

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-25
    • 2019-06-14
    • 2019-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多