在Win7x64上安装TensorFlow(没有匹配的分发/没有受支持的控制盘)

2024-04-25 19:01:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图让TensorFlow按照以下指南在我的Win7x64上工作:

https://www.tensorflow.org/install/pip

一切都很顺利,直到3. Install the TensorFlow pip package

当我执行“python”查看版本时,我得到以下结果:

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32

当我做“pip install tensorflow”时,我得到:

Could not find a version that satisfies the requirement of tensorflow (from versions: )
No matching distribution found for tensorflow

如果我尝试“python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp35-cp35m-win_amd64.whl”,我会得到:

tensorflow-1.2.1-cp55-cp35m-win_amd64.whl is not a supported wheel on this platform.

请帮助我理解我做错了什么或者为什么它不起作用?如何让它工作?非常感谢你!你知道吗


Tags: installpipthehttpsontensorflow指南not
1条回答
网友
1楼 · 发布于 2024-04-25 19:01:58

您的Python版本不受支持。Tensorflow目前只支持Python3.6和更低版本,而不支持3.7,即使您设法安装了它,您也会遇到问题,因为Python3.7将async作为关键字,许多库(如Tensorflow)将其用作变量名。为了在您的系统上工作,您需要将其降级到3.6,实际上在GitHub上有一个线程,其中包含有关此问题的疑难解答步骤:https://github.com/tensorflow/tensorflow/issues/17022

相关问题 更多 >