Ich versuche, TensorFlow auf Windows zu installieren.
Ich habe versucht, es mit pip
zu installieren, aber ich bekomme immer die gleiche Fehlermeldung:
... is not a supported wheel on this platform.
Ich habe es zuerst mit Python 3.5.1 versucht, jetzt habe ich auf 3.6.0b4 aktualisiert, aber es macht keinen Unterschied.
{{{}}}
Python:
Python 3.6.0b4 (default, Nov 22 2016, 05:30:12) [MSC v.1900 64 bit (AMD64)] on win32
pip:
pip 9.0.1 from ...\python\lib\site-packages (python 3.6)
Um genau zu sein, habe ich die folgenden zwei Befehle ausprobiert:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
sie geben das Folgende aus:
> tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
> tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Weiß jemand, wie man dieses Problem lösen kann? Ich bin mir nicht sicher, wo ich einen Fehler mache.
Danke!
Btw, ich habe auch pip install tensorflow
und pip install tensorflow-gpu
ausprobiert, wie hier vorgeschlagen. Ich bekam die folgende Ausgabe:
> Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
> Could not find a version that satisfies the requirement tensorflow-gpu (from versions: ) No matching distribution found for tensorflow-gpu
Python: 3.6.3
pip: 9.0.1
C:> pip3 install --upgrade tensorflow // cpu
C:> pip3 install --upgrade tensorflow-gpu // gpu
C:> conda create -n tensorflow python=3.5
C:> activate tensorflow
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu
Ein Beispiel für die Konsolenausgabe einer erfolgreichen Tensorflow-CPU-Installation finden Sie hier.
Fazit: Verwenden Sie die Version 3.5.2 !
Weder 3.5.1 noch 3.6.x scheinen im Moment zu funktionieren.
Versionen:
Python 3.5.2 pip 8.1.1 .. (python 3.5)
Befehle:
// cpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
// gpu
C:> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
Für die Pip-Installation unter Windows und 64-Bit-Python 3.5:
Nur CPU-Version:
C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
Für die GPU-Version:
C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl
https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html
Siehe auch https://stackoverflow.com/questions/38896424/tensorflow-not-found-in-pip?noredirect=1&lq=1.
Tensor Flow hat nur Unterstützung für Python 2.7 3.4 3.5 Andere Python-Versionen werden nicht unterstützt. Installieren Sie also bitte die unterstützte Python-Version und versuchen Sie es erneut. Der offizielle Link ist https://www.tensorflow.org/install/install_linux#InstallingAnaconda. Dort wird beschrieben, wie man es mit Anaconda installiert. Dies wird Ihnen helfen