When I installed python on macOS and used it, I got an error when I put an https connection

Development environment OS: macOS(Catalina 10.15.4) python: 3.8.2

First motive

As the title says, I put Python on my Mac and used it normally. When I tried to insert poetry and executed the command, the following error occurred

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>

Solution

When I tried google, it was okay if I installed the CA certificate, so I executed the following command and installed it, and it was solved successfully

$ zsh /Applications/Python\ 3.8/Install\ Certificates.command

Summary

It's just this content, but I thought that everyone would get caught like this, but when I googled it, it didn't hit so much, so I looked at the official website.

For macOS users ♡ Important information about SSL / TLS certificate verification and execution of "Install Certificates.command" will be displayed during python installation, so be sure to check it out! !! !! (Free translation) From Official Site

It was really written. I don't remember much when I installed it, but at least I didn't remember reading this text for macOS users.

Everyone, let's take a look at the official download page. Also, especially the parts that are specifically mentioned as the OS. </ strong>

Recommended Posts

When I installed python on macOS and used it, I got an error when I put an https connection
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
I got an error when pip install pandas on Mac, so I dealt with it
I got an error in vim and zsh in Python 3.7 series
I got an error when I ran meteor add accounts-password and got hooked
I installed and used Numba with Python3.5
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
I got an error when trying to install Xgboost and its solution
I got an error when saving with OpenCV
I got an error that Python couldn't read settings.ini
I get an error when I put opencv in pyautoGUI
I got an error when using Tensorboard with Pytorch
I get an error when I try to raise Python to 3 series using pyenv on Catalina
I installed FreeCAD on Linux (Ubuntu) and created an icon
[Python] I installed the game from pip and played it
I got an error when I tried to process luigi in parallel on windows, but the solution
[Python] Until CuPy is installed on Windows 10 and CUDA core is used
Resolved an error when putting pygame in python3 on raspberry pi
I got an AttributeError when mocking the open method in python
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
I got an error when I ran composer global require laravel / installer
When I get an error with Pylint in Atom on Windows
I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment
I want to pass an argument to a python function and execute it from PHP on a web server
I got an SSL related error with pip install, so I solved it
Error resolution when installing numba on macOS
I installed DSX Desktop and tried it
When I get an error with PyInstaller
When I tried to use Python on WSL (windows subsystem for linux), it got stuck in Jupyter (solved)
[Python] I want to know the variables in the function when an error occurs!
I made an image classification model and tried to move it on mobile
Use python on Raspberry Pi 3 and turn on the LED when it gets dark!
When I try matplotlib in Python, it says'cairo.Context'
Install Python and libraries for Python on MacOS Catalina
What to do if "export" keeps appearing on terminal when trying to put Python on macOS
I get an error when installing scipy on t2.micro because I don't have enough memory
When I try to import pandas on macOS I get the error No module named'_bz2'
When I used Plotly to draw an interactive graph, it was more than I expected.