Tensorflow: Mac + Python 3.6.1:mnistデータをダウンロードしようとすると、CERTIFICATE_VERIFY_FAILEDエラーが発生します

作成日 2017年06月16日  ·  31コメント  ·  ソース: tensorflow/tensorflow

システムインフォメーション

  • カスタムコードを作成しましたか(TensorFlowで提供されているストックサンプルスクリプトを使用するのではなく) :いいえ
  • OSプラットフォームとディストリビューション(例:Linux Ubuntu 16.04) :Mac OS X 10.12.5
  • (ソースまたはバイナリ)からインストールされたTensorFlow :バイナリ
  • TensorFlowバージョン(以下のコマンドを使用) :v1.2.0-rc2-21-g12f033d 1.2.0
  • Bazelバージョン(ソースからコンパイルする場合)
  • CUDA / cuDNNバージョン:なし
  • GPUモデルとメモリ:該当なし
  • 再現する正確なコマンド
$ python3 --version
Python 3.6.1

$ python3 -m virtualenv venv
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'
New python executable in .../venv/bin/python3
Also creating executable in .../venv/bin/python
Installing setuptools, pip, wheel...done.

$ source venv/bin/activate
$ pip install tensorflow
Collecting tensorflow
  Using cached tensorflow-1.2.0-cp36-cp36m-macosx_10_11_x86_64.whl
  ....

$ python
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.examples.tutorials.mnist import input_data
>>> mnist = input_data.read_data_sets("/tmp/data/")
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 235, in read_data_sets
    SOURCE_URL + TRAIN_IMAGES)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
    temp_file_name, _ = urlretrieve_with_retry(source_url)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
    return fn(*args, **kwargs)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
    return urllib.request.urlretrieve(url, filename)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>

これはTensorFlow1.1では再現されません。

awaiting response builinstall

最も参考になるコメント

これは、最近新しいマシンに切り替えたのに、まだ部分的にしかインストールされていないことが原因である可能性もあります:)

今後の参考のために:Python dmgインストーラーを使用する場合は、Python 3のReadMeを読み、 /Applications/Python 3.6/Install Certificates.command bashスクリプトを実行して新しい証明書をインストールする必要もあります。

迅速な対応をありがとう、@ aselle!

全てのコメント31件

python2(pyのデフォルトのシステムインストール)で試してみませんか? また、brewまたはmacportsをどのようにインストールしましたか(テストにはbrewを使用しているため、動作する可能性が高くなります)。

Python Webサイトのdmgインストーラーを使用してPython3.6をインストールしました(brewやmacports経由ではありません)。

Python2.7.10で動作するようです。 Python 2.xでは、urlretrieveはサーバー証明書を検証しないと思っていましたが、2.7.9以降は検証しているようです: https ://docs.python.org/2/library/urllib.html

Linux上のpython3.4で動作します。 brewを使ってpython3.6をインストールしてみます。 使用しているpython3ディストリビューションのデータ証明書が不足している可能性があります。

これは、最近新しいマシンに切り替えたのに、まだ部分的にしかインストールされていないことが原因である可能性もあります:)

今後の参考のために:Python dmgインストーラーを使用する場合は、Python 3のReadMeを読み、 /Applications/Python 3.6/Install Certificates.command bashスクリプトを実行して新しい証明書をインストールする必要もあります。

迅速な対応をありがとう、@ aselle!

ターミナルにコピーして貼り付けるだけの場合:
/Applications/Python\ 3.6/Install\ Certificates.command

MacOSX10.11.6でまったく同じ問題が発生しています

最初に、Python 3.nのvirtualenvセットアップの手順を正確に実行しました: https ://www.tensorflow.org/install/install_mac

次に、このチュートリアルhttps://www.tensorflow.org/get_started/mnist/beginnersの最初の2つの手順に従って、次のように表示されます。 これを回避するための提案(たとえば、他の場所からこれをダウンロードできますか?)をいただければ幸いです。

(tensorflow) ~/tensorflow  $ python
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.examples.tutorials.mnist import input_data
>>> mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 235, in read_data_sets
    SOURCE_URL + TRAIN_IMAGES)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
    temp_file_name, _ = urlretrieve_with_retry(source_url)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
    return fn(*args, **kwargs)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
    return urllib.request.urlretrieve(url, filename)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)>

@ brightbytes-dudeここにリストされているコマンドを実行しましたか: https

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

それはトリックをしました、ありがとう! (私はそれがdmgインストールにのみ関連していると愚かなことに思いました。)

contrib / learn / python / learn / datasets / mnist.pyのMNISTダウンロードURLを変更して、httpsを使用しないようにしてください。 それはこの問題を抱えている人々を助けるでしょう。 ブラウザで試してみると、httpダウンロードリンクが機能します。

変更する行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '
改行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '

こんにちは、
Pythonとtensorflowは初めてです。 MNISTの例を試して、paulcwatts(上記)とほぼ同じエラーメッセージを受信します

tensorflow.examples.tutorials.mnistからimportinput_data
mnist = input_data.read_data_sets( "MNIST_data /"、one_hot = True)
トレースバック(最後の最後の呼び出し):
do_openのファイル「C:UsersAndreasDocumentsPythonliburllibrequest.py」、1318行目
encode_chunked = req.has_header( 'Transfer-encoding'))
ファイル「C:UsersAndreasDocumentsPythonlibhttpclient.py」、1239行目、リクエストに応じて
self._send_request(method、url、body、headers、encode_chunked)
_send_requestのファイル「C:UsersAndreasDocumentsPythonlibhttpclient.py」、1285行目
self.endheaders(body、encode_chunked = encode_chunked)
エンドヘッダーのファイル「C:UsersAndreasDocumentsPythonlibhttpclient.py」、1234行目
self._send_output(message_body、encode_chunked = encode_chunked)
_send_outputのファイル「C:UsersAndreasDocumentsPythonlibhttpclient.py」、1026行目
self.send(msg)
ファイル "C:UsersAndreasDocumentsPythonlibhttpclient.py"、行964、送信
self.connect()
ファイル「C:UsersAndreasDocumentsPythonlibhttpclient.py」、1400行目、接続
server_hostname = server_hostname)
wrap_socket内のファイル "C:UsersAndreasDocumentsPythonlibssl.py"、行401
_context = self、_session = session)
__init__のファイル "C:UsersAndreasDocumentsPythonlibssl.py"、行808
self.do_handshake()
do_handshakeのファイル "C:UsersAndreasDocumentsPythonlibssl.py"、行1061
self._sslobj.do_handshake()
do_handshakeのファイル「C:UsersAndreasDocumentsPythonlibssl.py」、683行目
self._sslobj.do_handshake()
ssl.SSLError:[SSL:CERTIFICATE_VERIFY_FAILED]証明書の検証に失敗しました(_ssl.c:748)

上記の例外の処理中に、別の例外が発生しました。

トレースバック(最後の最後の呼び出し):
ファイル ""、1行目、
mnist = input_data.read_data_sets( "MNIST_data /"、one_hot = True)
ファイル「C:UsersAndreasDocumentsPythonlibsite-packagestensorflowcontriblearnpythonlearndatasetsmnist.py」、240行目、read_data_sets
source_url + TRAIN_IMAGES)
ファイル "C:UsersAndreasDocumentsPythonlibsite-packagestensorflowcontriblearnpythonlearndatasetsbase.py"、行208、maybe_download
temp_file_name、_ = urlretrieve_with_retry(source_url)
ファイル「C:UsersAndreasDocumentsPythonlibsite-packagestensorflowcontriblearnpythonlearndatasetsbase.py」、165行目、wrapped_fn
fn( args、* kwargs)を返します
ファイル "C:UsersAndreasDocumentsPythonlibsite-packagestensorflowcontriblearnpythonlearndatasetsbase.py"、行190、urlretrieve_with_retry
urllib.request.urlretrieve(url、filename)を返します
ファイル "C:UsersAndreasDocumentsPythonliburllibrequest.py"、行248、urlretrieve
contextlib.closeing(urlopen(url、data))をfpとして使用:
urlopenのファイル「C:UsersAndreasDocumentsPythonliburllibrequest.py」、223行目
opener.open(url、data、timeout)を返します
ファイル "C:UsersAndreasDocumentsPythonliburllibrequest.py"、行526、開いている
response = self._open(req、data)
ファイル "C:UsersAndreasDocumentsPythonliburllibrequest.py"、544行目、_open
'_open'、req)
_call_chain内のファイル "C:UsersAndreasDocumentsPythonliburllibrequest.py"、行504
結果= func(* args)
https_openのファイル「C:UsersAndreasDocumentsPythonliburllibrequest.py」、行1361
context = self._context、check_hostname = self._check_hostname)
do_openのファイル「C:UsersAndreasDocumentsPythonliburllibrequest.py」、1320行目
URLError(err)を発生させます
urllib.error.URLError:

主な違いは、私がWINDOWS 10を使用していて、certificatesコマンドが見つからないことです。
「ばかげた質問」をしてすみませんが、それらのエラーは「消えません」

私はSSLで同じ問題を抱えており、この行はそれを修正します、
/ Applications / Python 3.6 / Install Certificates.command
ありがとう@ EthanAI @ aselle @paulcwatts

このページを偶然見つけたが、UbuntuでTensorflow Hubを許可するための答えを探している人がいる場合は、次のように機能させました。

# Directory where user certs can be stored
cd /usr/local/share/ca-certificates
# Below may require elevated permissions, such as sudo su
pip3 install --upgrade certifi  # Installs a certificate file
# Move the installed cert to the place Ubuntu expects it
cp /home/ubuntu/.local/lib/python3.5/site-packages/certifi/cacert.pem .
# Convert it into the format Ubuntu expects
openssl x509 -in cacert.pem -inform pem -outform der -out cacert.crt
# Actually load the new cert into the OS
update-ca-certificates

さらに、企業プロキシの構成、Jupyterノートブックカーネルの再起動、ノートブックからではなくターミナル上のスクリプトからのTF Hubの実行の魔法の組み合わせにより、最終的にTFHubがターミナルとノートブックの両方で機能するようになりました。 。

そのコマンドの実行も失敗しました。
./InstallCertificates.command
--pip install --upgrade certifi
証明書の収集
キャッシュエントリの逆シリアル化に失敗しました。エントリは無視されます
URLをフェッチできませんでしたhttps://pypi.python.org/simple/certifi/:ssl証明書の確認に問題がありました:[SSL:CERTIFICATE_VERIFY_FAILED]証明書の検証に失敗しました(_ssl.c:777)-スキップします
要件certifiを満たすバージョンが見つかりませんでした(バージョンから:)
certifiに一致するディストリビューションが見つかりません
トレースバック(最後の最後の呼び出し):
ファイル ""、44行目、
ファイル ""、25行目、メイン
ファイル "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py"、行291、check_call
CalledProcessError(retcode、cmd)を発生させます
subprocess.CalledProcessError:コマンド '[' /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 '、' -E '、' -s '、' -m '、' pip '、' install ' 、 '-upgrade'、 'certifi'] 'はゼロ以外の終了ステータス1を返しました。

MacOSでは/Applications/Python\ 3.6/Install\ Certificates.commandコマンドが機能します

/Applications/Python\ 3.6/Install\ Certificates.commandはMacOSX HighSierraで魔法をかけました。 THX

仮想環境を使用している人のためのソリューションは何ですか?

更新:上記で指摘したのと同じシステムコマンドを実行すると、アクティブなvenvでもトリックが実行されるようです👆。 知っておくと良い!

ターミナルにコピーして貼り付けるだけの場合:
/Applications/Python\ 3.6/Install\ Certificates.command

ありがとう!

これは、最近新しいマシンに切り替えたのに、まだ部分的にしかインストールされていないことが原因である可能性もあります:)

今後の参考のために:Python dmgインストーラーを使用する場合は、Python 3のReadMeを読み、 /Applications/Python 3.6/Install Certificates.command bashスクリプトを実行して新しい証明書をインストールする必要もあります。

迅速な対応をありがとう、@ aselle!

ありがとう! 出来た! :NS

ありがとう

contrib / learn / python / learn / datasets / mnist.pyのMNISTダウンロードURLを変更して、httpsを使用しないようにしてください。 それはこの問題を抱えている人々を助けるでしょう。 ブラウザで試してみると、httpダウンロードリンクが機能します。

変更する行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '
改行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '

両方のURLが同じであることがわかります。

contrib / learn / python / learn / datasets / mnist.pyのMNISTダウンロードURLを変更して、httpsを使用しないようにしてください。 それはこの問題を抱えている人々を助けるでしょう。 ブラウザで試してみると、httpダウンロードリンクが機能します。

変更する行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '
改行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '

それは私のために働いた。

ターミナルでの入力のみが必要です
open "/Applications/Python 3.6/Install Certificates.command"

contrib / learn / python / learn / datasets / mnist.pyのMNISTダウンロードURLを変更して、httpsを使用しないようにしてください。 それはこの問題を抱えている人々を助けるでしょう。 ブラウザで試してみると、httpダウンロードリンクが機能します。
変更する行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '
改行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '

両方のURLが同じであることがわかります。

' https:// ... 'を ' http:// ... 'に変更します

/ Applications / Python 3.7 / Install Certificates.command
私のために働く

Manjaro Linuxでそれを行う方法は? Python3.7テンソルフローがあります。

ターミナルにコピーして貼り付けるだけの場合:
/Applications/Python\ 3.6/Install\ Certificates.command

ありがとう! わたしにはできる!
私はjupyterノートブックでコードを実行するだけです:
!/Applications/Python\ 3.6/Install\ Certificates.command

Linuxの場合...

.local / python3.X / lib / python3.6 / site-packages / keras / utils /data_utils.pyに移動します

以下のインポートステートメントはこれらを追加します----

`` `インポートリクエスト
requests.packages.urllib3.disable_warnings()
sslをインポートします

試す:
_create_unverified_https_context = ssl._create_unverified_context
AttributeErrorを除く:
#デフォルトでHTTPS証明書を検証しないレガシーPython
合格
そうしないと:
#HTTPS検証をサポートしていないターゲット環境を処理する
ssl._create_default_https_context = _create_unverified_https_context
`` `

今度はpythonの新しいインスタンスを試してみてください。うまくいけば、うまくいきます:smile_cat:

これは、最近新しいマシンに切り替えたのに、まだ部分的にしかインストールされていないことが原因である可能性もあります:)

今後の参考のために:Python dmgインストーラーを使用する場合は、Python 3のReadMeを読み、 /Applications/Python 3.6/Install Certificates.command bashスクリプトを実行して新しい証明書をインストールする必要もあります。

迅速な対応をありがとう、@ aselle!

あなたはこのコメントで私の命を救った! <3

contrib / learn / python / learn / datasets / mnist.pyのMNISTダウンロードURLを変更して、httpsを使用しないようにしてください。 それはこの問題を抱えている人々を助けるでしょう。 ブラウザで試してみると、httpダウンロードリンクが機能します。

変更する行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '
改行:
SOURCE_URL = ' https://storage.googleapis.com/cvdf-datasets/mnist/ '

これはubuntuで私のために働きます
~/miniconda/envs/py36/lib/python3.6/site-packages/tensorflow_core/python/keras/datasets/mnist.py変更する

改行
origin_folder = 'http://storage.googleapis.com/tensorflow/tf-keras-datasets/'

これが私のために働いたものです:

  1. mnistデータセットファイルを手動でダウンロードします(URLはエラーメッセージに表示されます)
  2. そのファイルを〜/ .keras / datasets /にコピーします

それで全部です。 kerasダウンロードユーティリティは、ネットワークを経由する前に、そのフォルダでキャッシュされたデータを探します。

(Python 3.7.3、tensorflow 2.1.0)

/ Applications / Python 3.6 / Install Certificates.commandこれは仮想環境でも機能しますか?

このページは役に立ちましたか?
0 / 5 - 0 評価