pip does not work anymore
Cecil Westerhof
Cecil at decebal.nl
Mon Nov 23 13:23:57 EST 2015
On Monday 23 Nov 2015 14:08 CET, Steven D'Aprano wrote:
> 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?
It worked without fail before the update, but you never know:
Python 2.7.9 (default, Dec 13 2014, 18:02:08) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> print urllib2.__file__
/usr/lib64/python2.7/urllib2.pyc
So I did not shadow I would think.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list