I am using the latest Nexus 3 OSS installation 3.22.0-02. I am experimenting with its support for pypi repositories and created a “hosted” pypi repo as per the available documentation. I was able to successfully upload a python package using twine (which as expected required a login to the nexus repo).
However, when using pip to install this package using the command:
pip install --extra-index-url http://nexus-hostip:port/repository/testpypi/simple mytestapp
Running this command prompts the user for a user name and password:
User for nexusip:8081:
Looking at the verbose log shows a 401 http status code when the http://nexus-hostip:port/repository/testpypi/ is accessed (even from the browser). So it looks like accessing a pypi repo mandates a login. Is there a way the repo can be configured to allow non-authenticated access. I have some Maven2 repos which don’t enforce such restrictions and are accessible without authentication. Is there some setting/documentation that I missed for pypi repos?