Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: pip does not work anymore Date: Mon, 23 Nov 2015 10:33:18 +0100 Organization: Decebal Computing Lines: 60 Message-ID: <87r3jhrrfl.fsf@Equus.decebal.nl> References: <87vb8trw9l.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="11083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OAp3Y9HU5jlr58FwYc3MAXLeUNqUWuSE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:gvhNUsQG5CoHVeFrUhHqUV1V0bY= sha1:TGAx+5lIjjgq4SptBlYFoHKp3j8= Xref: csiph.com comp.lang.python:99260 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 >> 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 >> from pip.vcs import git, mercurial, subversion, bazaar # >> noqa File "/usr/lib/python2.7/site-packages/pip/vcs/subversion.py", >> line 9, in from pip.index import Link File >> "/usr/lib/python2.7/site-packages/pip/index.py", line 30, in >> from pip.wheel import Wheel, wheel_ext File >> "/usr/lib/python2.7/site-packages/pip/wheel.py", line 35, in >> from pip._vendor.distlib.scripts import ScriptMaker File >> "/usr/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", >> line 14, in from .compat import sysconfig, >> detect_encoding, ZipFile File >> "/usr/lib/python2.7/site-packages/pip/_vendor/distlib/compat.py", >> line 31, in 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