The whole workaround as a sort of patch for the current 7.11 release: --- /usr/lib/python3/dist-packages/pip/download.py.orig 2018-01-22 11:02:16.055788573 +0100 +++ /usr/lib/python3/dist-packages/pip/download.py 2018-01-22 11:58:11.571880912 +0100 @@ -22,7 +22,7 @@ 'unpack_file_url', 'is_vcs_url', 'is_file_url', 'unpack_http_url'] -xmlrpclib_transport = xmlrpclib.Transport() +xmlrpclib_transport = xmlrpclib.SafeTransport()
--- /usr/lib/python3/dist-packages/pip/commands/search.py.orig 2018-01-22 11:00:45.283786471 +0100 +++ /usr/lib/python3/dist-packages/pip/commands/search.py 2018-01-22 11:01:21.015784662 +0100 @@ -22,7 +22,7 @@ '--index', dest='index', metavar='URL', - default='http://pypi.python.org/pypi', + default='https://pypi.python.org/pypi', help='Base URL of Python Package Index (default %default)') def run(self, options, args): --- /usr/lib/python3/dist-packages/pip/commands/install.py.orig 2018-01-22 12:06:42.479898296 +0100 +++ /usr/lib/python3/dist-packages/pip/commands/install.py 2018-01-22 12:07:43.315900300 +0100 @@ -49,7 +49,7 @@ '-i', '--index-url', '--pypi-url', dest='index_url', metavar='URL', - default='http://pypi.python.org/simple/', + default='https://pypi.python.org/simple/', help='Base URL of Python Package Index (default %default)') self.parser.add_option( '--extra-index-url', The latter was missing in the previous comment and is required in case of an install. Maybe secure transport may also be needed in other places too, but on my system installing worked after this patch. As of today the fix of this problem is still required for the 7.X LTS branch at least. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1643164 Title: ProtocolError: <ProtocolError for pypi.python.org/pypi: 403 Must access using HTTPS instead of HTTP> To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1643164/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs