首页 > 解决方案 > 我无法从nexus pip Repositories 下载我的python 包

问题描述

我通过 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

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

点安装结果

标签: pythonpipnexus

解决方案


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

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


推荐阅读