0

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

nsxus 中的主机 pip 存储库

我通过以下方式上传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

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

点安装结果

4

1 回答 1

0

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

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

于 2021-10-04T13:47:18.860 回答