我无法从 nexus pip 存储库下载我的 python 包

I can not download my python package from nexus pip Repositories

我通过 nexus 创建了一个自我存储库,并通过 twine 将我自己的 python 包上传到 nexus 存储库,但我无法通过 pip install 安装它们。

我通过以下方式上传 python 包: python setup.py sdist bdist_wheel

twine upload --repository-url http://127.0.0.1:8081/repository/wangs_host/ dist/*

我通过以下方式安装 python 软件包: pip install -i http://127.0.0.1:8081/repository/wangs_host/ package_test_wangs

但是不起作用,我该怎么办?谢谢。

索引URL不对,需要以“/simple”结尾。看这里:

https://help.sonatype.com/display/NXRM3/PyPI+Repositories#PyPIRepositories-ConfiguringPyPIClientTools