[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

最近在学习TensorFlow,获取fashion_mnist数据集的时候出现了一点小问题,报错内容如下:
URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)

意思是获得本地发行者证书失败,那我们就来安装一下就好了。

在应用程序中,找到目前用的Python版本,双击install Certificates.command,安装成功之后,就可以了。
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate_第1张图片

你可能感兴趣的:(Python,python,tensorflow,ssl)