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

2024-03-29 05:02:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用本地nexuspypi存储库来存储pythonwhl,但无法使用PIP成功地下载它们。在

Nexus正在ip为W.X.Y.Z的计算机上运行

通过网络连接,它显示了我的测试库

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

如果我选择其中一个whls它显示一个路径

^{pr2}$

在我想安装这个的远程机器上,我使用以下命令:

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

如果我尝试用浏览器下载whl

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


Tags: testpypiconfighttpforisrepositorypackages