【问题标题】:Could not find any downloads that satisfy the requirement pypm==1.3.4找不到任何满足 pypm==1.3.4 要求的下载
【发布时间】:2013-01-03 10:36:52
【问题描述】:

推送到 heroku 时出错:“找不到任何满足 pypm==1.3.4 要求的下载”

按照Django - failed to push some refs to git@heroku.com 的建议,我做到了

"pip install --upgrade -r requirements.txt"

Heroku 无法从需求文件安装 pypm 包。 错误是:

下载/解压 pypm==1.3.4(来自 -r requirements.txt(第 11 行))
找不到任何满足 pypm==1.3.4 要求的下载(来自 -r requirements.txt (line1 1))。
根本找不到 pypm==1.3.4 的分布(来自 -r requirements.txt(第 11 行))

有人知道如何解决这个问题吗?

【问题讨论】:

    标签: python django git heroku pip


    【解决方案1】:

    pip install 从 PyPi 中提取包,此错误告诉您此版本的 pypm 未在此处列出。查看PyPi listing for pypm 注意到 PyPM 是 ActivePython 使用的包管理器,只能通过安装 ActivePython 来使用。您应该从 requirements.txt 中删除此要求以部署到 Heroku。

    【讨论】:

    • 当我从 requirements.txt 中删除它时,我得到错误:pythonselect-1.3 目前只支持 OSX 和 Windows,而不是 linux2 命令 /app/.heroku/python/bin/python 的完整输出-c "import setuptools;__file__='/app/build/pythonselect/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-vSHqCy-record/install-record.txt: 错误: pythonselect-1.3 目前只支持 OSX 和 Windows,不支持 linux2
    • ---------------------------------------------------- 命令 / app/.heroku/python/bin/python -c "import setuptools;__file__='/app/build/pythonselect/setup.py';exec(compile(open(file).read() .replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-vSHqCy -record/install-record.txt 在 /app/build/pythonselect 中失败,错误代码为 1
    • 我在 requirements.txt 中去掉了 pythonselect,它解决了问题!
    猜你喜欢
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-20
    • 2017-12-14
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    相关资源
    最近更新 更多