【问题标题】:requirements.txt with packages in pypi and furyrequirements.txt 包含 pypi 和 fury 中的包
【发布时间】:2018-06-11 14:56:31
【问题描述】:

当我使用弹性 beanstalk 时,我必须在我的所有包中指定一个 requirements.txt 文件。我遇到的问题是其中一个包必须从 gemfury 获取,我不知道该怎么做。 pipenv lock -r 生成的 requirements.txt 文件如下所示:

-i https://pypi.org/simple
--extra-index-url https://repo.fury.io/123456/fdp/
click==6.7
flask==1.0.2
nose==1.3.7
numpy==1.14.4
py-fdp-utils==1.1.6
pycodestyle==2.4.0

py-fdp-utils 是我想从 gem fury 获得的私有包。

如果我运行,它将在第一个包上失败并出现以下错误:

pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://repo.fury.io/123456/fdp/click/

我怎样才能指定 requirements.txt 只为这个包使用 gem fury 索引?

【问题讨论】:

    标签: python pip gem-fury


    【解决方案1】:

    根据 Gemfury 文档,您可以尝试以下操作:

    --index-url https://pypi.fury.io/USERNAME/
    --extra-index-url https://pypi.org/simple/
    private-package=0.0.1
    

    【讨论】:

      猜你喜欢
      • 2017-09-30
      • 2013-05-01
      • 2019-09-06
      • 2013-07-08
      • 1970-01-01
      • 2014-04-21
      • 2017-09-14
      • 2017-12-14
      • 1970-01-01
      相关资源
      最近更新 更多