Error installing Python library

0

I have python 2.7.14 installed with 9.0.1 pip on a Macbook. I was having an error trying to run the pip.list command from the terminal.

I checked into Google that I needed to edit the pip.conf file, but I could not find it. So, I checked the path it should be, / Library / Application Support / pip, and create the file with the following content:

[list]
format=columns

When I try to execute a command to install a package through the terminal, for example:

pip install beautifulsoup4

I have the following return:

Collecting beautifulsoup4
  Cache entry deserialization failed, entry ignored
  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:661) - skipping
  Could not find a version that satisfies the requirement 
beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4

Could someone help me solve it?

    
asked by anonymous 12.04.2018 / 03:25

1 answer

0

Update the pip as follows:

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

This error is related to a change in all pages related to Python.org: they no longer support versions 1.0 and 1.1 of TLS. This means that for OSX

17.04.2018 / 06:42