pip does not work anymore

Steven D'Aprano steve at pearwood.info
Mon Nov 23 08:08:03 EST 2015


On Mon, 23 Nov 2015 06:48 pm, Cecil Westerhof wrote:

> When I try to install something with pip2 I get:
>     Traceback (most recent call last):
[...]
>         from urllib2 import (Request, urlopen, URLError, HTTPError,
>     ImportError: cannot import name HTTPSHandler

Before blaming SUSE for breaking this, please run this at the interactive
interpreter:

import urllib2
print urllib2.__file__


Have you perhaps accidentally shadowed the std lib module?



-- 
Steven




More information about the Python-list mailing list