The other day, I touched Tensorflow2 for the first time and tried to learn with the mnist dataset, which is in the position of a tutorial for pattern recognition, and I will write a solution to the trouble that occurred at that time.
f.py
import tensorflow as tf
mnist = tf.keras.datasets.mnist
m_data=mnist.load_data()
Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
It seems that there is a problem with ssl and mnist data cannot be obtained.
Apparently the above error is occurring because the standard ssl on mac doesn't support it.
The standard ssl on my Mac was Libre, so I'll change it to openssl.
Just type brew install openssl in the terminal.
But with this, ssl is still Libre.
To change to openssl, when you install openssl
If you need to have [email protected] first in your PATH run:
echo 'export PATH="/usr/local/opt/[email protected]/bin:
https://qiita.com/orangain/items/0a641d980019fd7e0c52