Reputation: 1
I have been unable to install pip in Python 2.6. I've downloaded the bootstrap from https://bootstrap.pypa.io/pip/2.6/get-pip.py and the attempt to install yields ther following error:
c:\users\XXXXX\appdata\local\temp\tmpyssruu\pip.zip\pip\_vendor\urllib3\connection.py:344: SubjectAltNameWarning: Certificate for pypi.python.org has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
Certificate did not match expected hostname: pypi.python.org. Certificate: {'notAfter': 'Jun 10 12:50:10 2025 GMT', 'subject': ((('commonName', u'www.python.org'),),)}
I've scoured the web looking for alternative solutions, but nothing has worked so far. The above looks the most promising if I could just correct the certificate error.
The only thing I can think of to fix this is to decode the base64 in get-pip.py, modify the code, re-encode and then replace that in get-pip.py. But there is no guarantee I will be able to fix/circumvent the error.
Can anyone offer a simpler solution, PLEASE?
My other attempts at installing pip included an unsuccessful try at installing setuptools-36.8.0 so I could use easy_install to load pip-9.0.3. that I downloaded. It wouldn't install in the correct directory. This solution was suggested in How to install pip with python 2.6 on Windows
Upvotes: 0
Views: 45