代码之家  ›  专栏  ›  技术社区  ›  Richard B

使用本地pypi存储库时找不到whl

  •  0
  • Richard B  · 技术社区  · 7 年前

    我试图使用本地nexus pypi存储库来存储我的python WHL,但无法使用PIP成功下载它们。

    Nexus运行在具有ip的机器上 W.X.Y.Z

    http://W.X.Y.Z:8081/#browse/browse/components:pypi-internal-test
    

    如果我选择其中一个WHL,它会显示一条路径

    Path    packages/tradeloader/1.1.0/tradeloader-1.1.0-py2.py3-none-any.whl
    

    pip install --trusted-host W.X.Y.Z -i http://W.X.Y.:8081/repository/pypi-internal-test/packages tradeloader
    

    它出现以下故障

    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
    Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
    Config variable 'Py_UNICODE_SIZE' is unset, Python ABI tag may be incorrect
    Collecting tradeloader
      1 location(s) to search for versions of tradeloader:
      * http://W.X.Y.Z:8081/repository/pypi-internal-test/packages/tradeloader/
      Getting page http://W.X.Y.Z:8081/repository/pypi-internal-test/packages/tradeloader/
      Starting new HTTP connection (1): W.X.Y.Z
      "GET /repository/pypi-internal-test/packages/tradeloader/ HTTP/1.1" 401 0
    User for W.X.Y.Z:8081: <<My user>>
    Password:
      "GET /repository/pypi-internal-test/packages/tradeloader/ HTTP/1.1" 404 1814
      Could not fetch URL http://W.X.Y.Z:8081/repository/pypi-internal-test/packages/tradeloader/: 404 Client Error: Not Found for url: http://W.X.Y.Z:8081/repository/pypi-internal-test/packages
    /tradeloader/ - skipping
      Could not find a version that satisfies the requirement tradeloader (from versions: )
    Cleaning up...
    No matching distribution found for tradeloader
    

    http://X.X.Y.Z:8081/repository/pypi-all/packages/tradeloader/1.1.0/tradeloader-1.1.0-py2.py3-none-any.whl
    

    whl很好,但是,当然,我对我想要的东西非常具体,希望皮普允许我只要求最新的

    我已经看了一段时间了,看不出我做错了什么。有谁能帮忙吗?

    Unable to install PyPi package