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.

Unable to upgrade pip or install packages

See original GitHub issue
  • Pip version: pip 8.0.3
  • Python version: 3.4.3
  • Operating system: OS 10.13

Description:

I was trying to install beautifulSoup4, but I keep running into an error claiming there is a problem with the ssl certificate.

$ pip install beautifulsoup4
Could not fetch URL https://pypi.python.org/simple/beautifulsoup4/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) - skipping
  Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4

I saw a few others having a similar issue that they were able to work around by nameing pypi.python.org as a trusted host. I tried that, but to no successful.

$ pip install --trusted-host pypi.python.org beautifulsoup4
Collecting beautifulsoup4
  Could not fetch URL https://pypi.python.org/simple/beautifulsoup4/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) - skipping
  Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4

I also found I am unable to upgrade pip. When trying to upgrade pip, I see that requirements are already up to date, although when running pip --version I see that I’m a few versions behind.

$ pip install -U pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages

$ pip --version
pip 8.0.3 from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (python 3.4)

Anyone experience similar issues? Any suggestions?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
jackton1commented, Apr 16, 2018

Upgrade pip3 using.

curl https://bootstrap.pypa.io/get-pip.py | python3

Instead of pip install -U pip

For pip2 pip2 install --upgrade pip

0reactions
lock[bot]commented, Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Unable to upgrade pip - Stack Overflow
You have to run it with sudo unless you are using a virtualenv. The problem is that you don't have the permission to...
Read more >
python - Unable to upgrade pip - Ask Ubuntu
This is caused by a conflict between a version of pip provided by a system package, like python-pip , and a version provided...
Read more >
Error while upgrading pip ERROR Could not install packages ...
You should consider upgrading via the 'python -m pip install --upgrade pip' command. I got the following error: DEPRECATION: Python 2.7 will ...
Read more >
pip upgrade fails - tells me to upgrade pip : r/learnpython
# pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/52/e1/ ...
Read more >
Why you should upgrade pip, and how to do it - Python⇒Speed
Unfortunately, if you're using an old version of pip , installing the latest version of a Python package might fail—or install in a...
Read more >

github_iconTop Related Medium Post

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