Why am I not able to connect to pypi.python.org?

The Python Package Index (PyPI) is a repository of software packages supplied by the worldwide community of Python developers that is maintained by the Python Software Foundation.

What Happened?

Until April 30, 2018, the Python Package Index was available at http://pypi.python.org.

PyPI underwent changes and the PyPI administrators announced that by April 30th, the current URL would be deprecated, and the PyPI public repository would only be available at http://pypi.org In addition, the internal structure the PyPI index changed.

How This Affects You

These are breaking changes. If you are using Artifactory remote PyPI repositories that proxy the PyPI index at its current URL of http://pypi.python.org, you will no longer be able to resolve PyPI packages from these remote repositories.

To continue working with these Artifactory remote PyPI repositories, follow the rest of the instructions in this KB article.

JFrog is Supporting You

To align with the changes introduced to PyPi, on April 18, we released Artifactory patch versions 5.8.9, Artifactory 5.9.5 and Artifactory 5.10.3, that support the new PyPI repository at its new URL and with its new structure.

For details about the latest patches that support the new PyPI repository, please refer to the JFrog Artifactory Release Notes.

You can download these patch versions from JFrog Bintray.

What You Need To Do

To continue using PyPI remote repositories in Artifactory that proxy the official PyPI index and resolve new packages from it:

  1. Upgrade Artifactory to the latest patch corresponding to your current version.

  2. After the upgrade, in the PyPI remote repository configuration:

    1. Set the URL field to: https://files.pythonhosted.org

    2. Set the Registry URL field to https://pypi.org

Note! The Registry URL field is  only available in Artifactory 5.10.3 and above. This field could not be added to earlier versions, and is therefore, not available in the patches for Artifactory 5.8.x and Artifactory 5.9.x. In these patches, to support the new PyPI structure, the only change you need to make is to set the URL field to https://pypi.org. The https://files.pythonhosted.org is automatically extracted from a system property, artifactory.pypi.default.download.url which is set to this value by default.

If you are using an older version of JFrog Artifactory, to continue working with PyPI, you need to upgrade to one of the patches released on April 18, 2018 or later patches for the same major version.

Still Having Problems?

As announced by the PyPI administrators, the new PyPI index is still in Beta. We recommend following PyPI announcements to see when the new index is officially released.

JFrog will continue to support you through this transition. If you have any problems using the new PyPI index in Artifactory, or have any other questions regarding this change, please contact support@jfrog.com and we will be happy to assist you.