tensorflow with Pycharm

tensorflow with Pycharm

I was trying to execute the sample code from Google tensorflow quick start for beginner on my Mac and I run into the ssl.SSLCertVerificationError.

My Pycharm was setup to run all code in venv with Python 3.8 and the necessary tensorflow library setup.

Pycharm with sample code from Google

Error Message:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)


My Mac setup:

Python 2.7.16 Mac System version
Python 3.8.3 downloaded from python.org and installed onto my Mac with pip version 19.2.3.

Resolution:

Step 1:

Update the Python 3.8.3’s pip to the latest version with the command in your terminal:

pip3 install –upgrade pip 

Step 2:

Execute the following command in your terminal:

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

Leave a Reply

Back To Top