Ich versuche, meinen Computer für die Ausführung von Tensorflow 2 einzurichten. Ich habe Tensorflow noch nie verwendet und habe gerade Python 3.7 heruntergeladen. Ich bin mir nicht sicher, ob dies ein Problem mit meiner Maschine ist oder nicht. Ich habe die Installationsanweisungen auf der Website von TensorFlow befolgt. Ich habe die Installationsanweisungen befolgt und alles schien zu funktionieren.
MacOS 10.15.3
Python 3.7
Tensorflow 2
Ich habe ein kleines Programm erstellt, nur um die Dinge auszuprobieren. Das habe ich:
import io
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
import numpy as np
data = keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = data.load_data()
Wenn ich data.load_data() ausführe, erhalte ich diese Fehlermeldung:
Downloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1414, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 423, in wrap_socket
session=session
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 870, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/utils/data_utils.py", line 263, in get_file
urlretrieve(origin, fpath, dl_progress)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/jacksonmelcher/Development/Personal/TensorFlow/tf_embeddings.py", line 12, in
(train_images, train_labels), (test_images, test_labels) = data.load_data()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/datasets/fashion_mnist.py", line 75, in load_data
paths.append(get_file(fname, origin=base + fname, cache_subdir=dirname))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/utils/data_utils.py", line 267, in get_file
raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: 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:1076)
Auch hier verwende ich Tensorflow und Keras zum ersten Mal, aber es scheint ein Verbindungsproblem mit dem API-Dienst von Google zu sein.
Jede Hilfe wäre sehr dankbar, da ich nichts finden kann.
Ich versuche, meinen Computer für die Ausführung von Tensorflow 2 einzurichten. Ich habe Tensorflow noch nie verwendet und habe gerade Python 3.7 heruntergeladen. Ich bin mir nicht sicher, ob dies ein [url=viewtopic.php?t=26065]Problem[/url] mit meiner Maschine ist oder nicht. Ich habe die Installationsanweisungen auf der Website von TensorFlow befolgt. Ich habe die Installationsanweisungen befolgt und alles schien zu funktionieren.
MacOS 10.15.3
Python 3.7
Tensorflow 2
Ich habe ein kleines Programm erstellt, nur um die Dinge auszuprobieren. Das habe ich:
[code]import io import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import keras import numpy as np
Wenn ich data.load_data() ausführe, erhalte ich diese Fehlermeldung:
[code]Downloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1244, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1290, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1239, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1414, in connect server_hostname=server_hostname) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 423, in wrap_socket session=session File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 870, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1139, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/utils/data_utils.py", line 263, in get_file urlretrieve(origin, fpath, dl_progress) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 247, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open response = self._open(req, data) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open '_open', req) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1360, in https_open context=self._context, check_hostname=self._check_hostname) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open raise URLError(err) urllib.error.URLError:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/jacksonmelcher/Development/Personal/TensorFlow/tf_embeddings.py", line 12, in (train_images, train_labels), (test_images, test_labels) = data.load_data() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/datasets/fashion_mnist.py", line 75, in load_data paths.append(get_file(fname, origin=base + fname, cache_subdir=dirname)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/keras/utils/data_utils.py", line 267, in get_file raise Exception(error_msg.format(origin, e.errno, e.reason)) Exception: 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:1076) [/code]
Auch hier verwende ich Tensorflow und Keras zum ersten Mal, aber es scheint ein Verbindungsproblem mit dem API-Dienst von Google zu sein.
Jede Hilfe wäre sehr dankbar, da ich nichts finden kann.
Ich habe diese Seite in meiner App erstellt. Die Absicht war, die Quelle in eine lokale Datei im Rohinhalt zu ändern, aber bevor ich überhaupt versuche, mich an den Code dahinter zu binden, um ihn zu...
Ich habe diese Seite in meiner App erstellt. Die Absicht war, die Quelle in eine lokale Datei im Rohinhalt zu ändern, aber bevor ich überhaupt versuche, mich an den Code dahinter zu binden, um ihn zu...
Ich verwende Glide, um ein Bild in ein zeichnbares Objekt zu laden. Wenn ich versuche, ein lokales Bild zu laden, funktioniert es einwandfrei. Aber wenn ich von der URL zum Bild wechsle, funktioniert...
Ich versuche ein kleines Testprojekt zu erstellen, bei dem ich Nachrichten habe (Blog -Beiträge) und die Leute können auf sie reagieren. Ich wollte in der Lage sein, Artikel aus einer CSV-Datei zu...