On Monday 23 Nov 2015 09:11 CET, Laura Creighton wrote: > In a message of Mon, 23 Nov 2015 08:48:54 +0100, Cecil Westerhof > writes: >> When I try to install something with pip2 I get: Traceback (most >> recent call last): File "/usr/bin/pip2", line 9, in <module> >> load_entry_point('pip==7.1.2', 'console_scripts', 'pip2')() File >> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line >> 558, in load_entry_point return >> get_distribution(dist).load_entry_point(group, name) File >> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line >> 2682, in load_entry_point return ep.load() File >> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line >> 2355, in load return self.resolve() File >> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line >> 2361, in resolve module = __import__(self.module_name, >> fromlist=['__name__'], level=0) File >> "/usr/lib/python2.7/site-packages/pip/__init__.py", line 15, in >> <module> from pip.vcs import git, mercurial, subversion, bazaar # >> noqa File "/usr/lib/python2.7/site-packages/pip/vcs/subversion.py", >> line 9, in <module> from pip.index import Link File >> "/usr/lib/python2.7/site-packages/pip/index.py", line 30, in >> <module> from pip.wheel import Wheel, wheel_ext File >> "/usr/lib/python2.7/site-packages/pip/wheel.py", line 35, in >> <module> from pip._vendor.distlib.scripts import ScriptMaker File >> "/usr/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", >> line 14, in <module> from .compat import sysconfig, >> detect_encoding, ZipFile File >> "/usr/lib/python2.7/site-packages/pip/_vendor/distlib/compat.py", >> line 31, in <module> from urllib2 import (Request, urlopen, >> URLError, HTTPError, ImportError: cannot import name HTTPSHandler >> >> With pip3 I get the same problem. >> >> It looks like openSUSE has done an upgrade in which it disabled >> ssl2. How can I get pip2/3 working again? >> > > Reading > https://forums.opensuse.org/showthread.php/488962-OpenSuse-python-amp-openssl > seems to indicatew that you are supposed to use python-pip and not > pip for OpenSuse, but I don't have one, so that is just my > interpretation.
python-pip is the package that you need to install to use pip2. I removed it and then pip2 does not exist anymore. I reinstalled it, but keep getting the same error. It looks like I need to install: https://docs.python.org/2/library/urllib2.html?highlight=urllib2#urllib2.HTTPSHandler but I need pip2 to do that. So I need a working pip2 to get it working. :'-( By the way openSUSE did a big update and broke other things also. For example virtualbox. Probably time to really leave openSUSE for Debian. But that will not be painless. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listinfo/python-list