[PYTHON] SSL certificate related with pip install? Error

pip installWhen I try, I get the following error:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in ./.anyenv/envs/pyenv/versions/3.7.3/lib/python3.7/site-packages (19.0.3)

It looks like an SSL-related error, so I'll try re-installing OpenSSL for the time being.

brew install openssl

But no. You can't add a trusted setting to ~ / .pip / conf.pip.

Solution

Reinstalling Python and pip solved the problem. I was using pyenv, so

pyenv install 3.8.0

pyenv global 3.8.0

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

After executing, I ran `` `pip install``` again and it worked fine.

It's moyamoya, but it worked, so let's leave it as it is. .. ..

Recommended Posts

SSL certificate related with pip install? Error
Error with pip install
I got an SSL related error with pip install, so I solved it
Read this if you get SSL related errors with pip install! !! !!
Error with pip: There was a problem confirming the ssl certificate
Install scikit.learn with pip
Eliminates SSL error when PIP Install on Windows.
pip install ○○○ error Command errored out with exit status 1:
When moss with pip install
Install github repository with pip
A memorandum when an error occurs with pip install
Install Python 2.7.9 and Python 3.4.x with pip.
Permission denied with pip install pyopenssl
Manipulate colors with pip install color
How to install mysql-connector with pip3
Proxy error when running "pip install"
[Python Windows] pip install with Python version
Dealing with PermissionError [Error 1] for pip install -U pip on macOS Sierra
I get an error when trying to install maec 4.0.1.0 with pip
Solution for pip install error [Python] [Mac]
In pip install clang: error: unknown argument:'-mno-fused-madd'
I want to pip install with PythonAnywhere
Install by specifying the version with pip
scipy stumbles with pip install on python 2.7.8
I can't install the package with pip.
Let's install box2d-py with Windows 10 environment pip
Measures that pip install cannot be done with pycharm or import ssl cannot be done
I can't install Dask with pip on Ubuntu
Workaround if you get an error when trying to install PySide with pip
sudo pip install
Avoiding "'ascii' codec can't decode" with pip install
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
Install pip and pandas with Ubuntu or VScode
Steps to install your own library with pip
For those who are in trouble with an error when pip install xg boost
I got an error when pip install pandas on Mac, so I dealt with it
(CentOS) ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config
An error related to saas occurred during bundle install
Dealing with pip and related installation errors on Ubuntu 18.04
Until you install TensorFlow-GPU with pip in Windows environment
Install tweepy with pip and use it for API 1.1
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
Install pip on Mavericks
PIL installation with pip
Install pip, pyenv, BeautifulSoup4
Installing packages with pip3
How to install pip
Solution when pip install from other than the official website and SSL Error (SSL authentication error) occurs
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
Use pip with MSYS2
Install Voluptuous with Python 2.5
Install the pip command
Install torch-scatter with PyTorch 1.7
Install python with pyenv
Install pip / pip3 on Ubuntu
When pip install fails
[Road to intermediate Python] Install packages in bulk with pip
Until you can install your own Python library with pip
Can't find the package you installed with pip install --user?
Manually fix pip install not possible with Unicode Decode Eroor
Steps to install a Git cloned package locally with pip