0

我在我的机器上重新安装了新的 ubuntu 14:04,然后我开始收到这个错误,而在旧安装中,程序运行完美,没有任何烦人的错误。请提供任何帮助。顺便说一句,我在这里发现问题无法在 keras 中加载 mnist 数据集,但它看起来不同的错误,我的工作没有任何问题。

Using Theano backend.
Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled, cuDNN 5005)
Downloading data from https://s3.amazonaws.com/img-datasets/mnist.pkl.gz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mnist_cnnFORTESTING.py", line 9, in <module>
execfile("file.py")
File "file.py", line 28, in <module>
(X_train, y_train), (X_test, y_test) = mnist.load_data()
File "/home/sal/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/keras/datasets/mnist.py", line 9, in load_data
path = get_file(path, origin="https://s3.amazonaws.com/img-datasets/mnist.pkl.gz")
File "/home/sal/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/keras/utils/data_utils.py", line 70, in get_file
raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: URL fetch failure on https://s3.amazonaws.com/img-datasets/mnist.pkl.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify   failed (_ssl.c:590)
4

1 回答 1

2

哇,我找到了答案,只需使用

   sudo mkdir -p /etc/pki/tls
   sudo ln -s /etc/ssl/certs /etc/pki/tls/certs

我通过@ Dilettant 的线索在以下链接中找到了答案,谢谢 https://support.enthought.com/hc/en-us/articles/204646264-Linux-non-RHEL-Python-code-fails-to-connect -to-https-with-certificate-errors

于 2016-06-02T16:22:00.033 回答