Search code examples
pythonpipnexus

I can not download my python package from nexus pip Repositories


I create a self repositorie by nexus , and upload my own python package to nexus repositorie by twine , but I can not install them by pip install.

The host pip repositorie in nsxus

I upload the python package by: python setup.py sdist bdist_wheel

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

I inistall the python package by: pip install -i http://127.0.0.1:8081/repository/wangs_host/ package_test_wangs

but it does not work, what should I do ? Thanks.

pip install result


Solution

  • The index URL isn’t right, it needs to end with “/simple”. See here:

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