question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get-pip.py fails to bootstrap PIP installation on my Ubuntu 14.04.1 with Certificate verification error.

See original GitHub issue

get-pip.py fails to bootstrap PIP installation on my Ubuntu 14.04.1.

~$ curl -o /home/sudhakso/devstack/files/get-pip.py https://bootstrap.pypa.io/get-pip.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1546k  100 1546k    0     0   261k      0  0:00:05  0:00:05 --:--:--  339k
~$  sudo -H -E python /home/sudhakso/devstack/files/get-pip.py
Collecting pip
  Could not find any downloads that satisfy the requirement pip
  No distributions at all found for pip

And when I do,

~$ pip install --upgrade pypdf2 -vvv
results in this error -
 pip install --upgrade pypdf2 -vvv
Downloading/unpacking pypdf2
  Getting page https://pypi.python.org/simple/pypdf2/
  Could not fetch URL https://pypi.python.org/simple/pypdf2/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Will skip URL https://pypi.python.org/simple/pypdf2/ when looking for download links for pypdf2
  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Will skip URL https://pypi.python.org/simple/ when looking for download links for pypdf2
  Cannot fetch index base URL https://pypi.python.org/simple/
  URLs to search for versions for pypdf2:
  * https://pypi.python.org/simple/pypdf2/
  Getting page https://pypi.python.org/simple/pypdf2/
  Could not fetch URL https://pypi.python.org/simple/pypdf2/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  Will skip URL https://pypi.python.org/simple/pypdf2/ when looking for download links for pypdf2
  Could not find any downloads that satisfy the requirement pypdf2
Cleaning up...
  Removing temporary dir /tmp/pip_build_sudhakso...
No distributions at all found for pypdf2
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pypdf2

From the error it is very clear certificate verification failed. But why? Is it because OPEN-SSL version doesn’t support SHA256 MD cipher?

But my openSSL configuration states it support SHA256 for MD.

~$ openssl ciphers  -v | grep ^AES256-SHA256
AES256-SHA256           TLSv1.2 Kx=RSA      Au=RSA  Enc=AES(256)  Mac=SHA256

looks a similar issue like #2050

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ajeanscommented, Oct 6, 2017

As a reference if anyone gets the same problem, I solved this issue with: ./get-pip.py --trusted-host pypi.python.org

0reactions
Akasurdecommented, Jun 11, 2018

# python get-pip.py --trusted-host pypi.org --trusted-host files.pythonhosted.org

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install fails with "connection error: [SSL - Stack Overflow
(… and then running get-pip.py with the relevant Python interpreter). ... CA verify error:num=20:unable to get local issuer certificate verify return:0 ...
Read more >
How to resolve SSL Certificate Error while installing PIP?
I would like to add, Python was pre-installed with the OS and I'm trying to install PIP directly. I tried installed from epel-repo...
Read more >
pip won't run. throws errors instead - Ask Ubuntu
First remove the python-pip package and then install the latest version of ... wget https://bootstrap.pypa.io/get-pip.py python get-pip.py.
Read more >
Installing pip3 in Ubuntu - Educative.io
pip3 is the official package installer for Python 3. ... To verify the installation, run the following command to cross check the version...
Read more >
How to Install Pip on Ubuntu 14.04 LTS - Liquid Web
In this quick tutorial, we teach you what is Pip and provide an easy two-step process to install this helpful Python manager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found