[PYTHON] I got an SSL related error with pip install, so I solved it

SSL related when trying to install the module with pip? A memo of the correspondence when the error of is solved.

problem

When I tried to install the module with pip, I got the following warning.

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Actually, there were some other warnings, but they were all related.

solution

After investigating, there were some solutions suggested, but I solved it by reinstalling pip and Python.

pyenv install 3.8.0

(By the way, I got the error python-build: definition not found: 3.8.0. The solution at that time is summarized in here. T.)

Next, specify that this version will be used. I don't want to use it only in a specific directory, so use global instead of local.

pyenv global 3.8.0

Confirmed just in case.

% python --version
Python 3.8.0

OK. I was able to use pip install safely.

Recommended Posts

I got an SSL related error with pip install, so I solved it
I got an error when pip install pandas on Mac, so I dealt with it
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
SSL certificate related with pip install? Error
I get an error when trying to install maec 4.0.1.0 with pip
Error with pip install
A memorandum when an error occurs with pip install
I got an error when using Tensorboard with Pytorch
I got stuck so I reviewed it
I cried with `pip install --upgrade pip` with Bad md5 hash for package, but it got better
Read this if you get SSL related errors with pip install! !! !!
I get an error with import pandas.
I want to pip install with PythonAnywhere
When I get an error with PyInstaller
I can't install the package with pip.
I got stuck trying to install various things with Mac El captain pip, so make a note
I can't install Dask with pip on Ubuntu
Install openstack client from pip so you don't get an error on CentOS7
Workaround if you get an error when trying to install PySide with pip
I tried to publish my own module so that I can pip install it
I failed to install django with pip, so a reminder of the solution
I get an error with all yum commands
[Personal memo] pip install fails, so solve it
Eliminates SSL error when PIP Install on Windows.
For those who are in trouble with an error when pip install xg boost
I got an error that Python couldn't read settings.ini
pip install ○○○ error Command errored out with exit status 1:
I like Python's comprehension, so I compared it with map
I got a UnicodeDecodeError when pip install on ubuntu
An error related to saas occurred during bundle install
psql: I ran into an error with an invalid option --'''.
Install tweepy with pip and use it for API 1.1
Install scikit.learn with pip
I wrote python3.4 in .envrc with direnv and allowed it, but I got a syntax error
When I installed python on macOS and used it, I got an error when I put an https connection
I got a Value Error when using JUMAN ++ with PyKNP
I got an error in vim and zsh in Python 3.7 series
A story about installing matplotlib using pip with an error
What to do when an error occurs with import _ssl
I have libncurses but get angry with pip install readline
Insecure Platform Warning still appears with pip install, but I didn't do it because it was troublesome.
When moss with pip install
Install github repository with pip
Dealing with PermissionError [Error 1] for pip install -U pip on macOS Sierra
# Solution when pip install gives an error when using Anaconda on Windows 10
I got an error when I ran composer global require laravel / installer
When I get an error with Pylint in Atom on Windows
Error with pip: There was a problem confirming the ssl certificate
[TensorFlow] If you want to run TensorBoard, install it with pip
I made a segment tree with python, so I will introduce it
I got an error when I ran meteor add accounts-password and got hooked