Tensorflow 安装错误:__ 不是此平台上支持的轮子 [英] Tensorflow installing error: __ is not a supported wheel on this platform

查看:87
本文介绍了Tensorflow 安装错误:__ 不是此平台上支持的轮子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 PC 上安装 tensorflow,但我不断收到错误消息.

I'm trying to install tensorflow on my PC but I keep getting errors.

我在网上看到了多篇关于 tensorflow 安装错误的帖子,但我发现的所有解决方案都是说 python 版本不兼容.但是,我使用的是 python 3.8,并且我使用的是 tensorflow 网站上提供的 python 3.8 的 URL,所以我不知道这可能是什么问题.

I have seen multiple posts about tensorflow installing errors online but all I found was solutions saying that the version of python was not compatible. However, I am using python 3.8 and I am using the URL for python 3.8 provided on tensorflow's website, so I don't see how that could be the issue.

我正在使用的命令:

python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl

我得到的错误:

ERROR: tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

我使用的是 python 3.8pip 20.1.1,我的电脑运行的是 64 位 Windows 10.

I'm using python 3.8, pip 20.1.1 and my PC is running 64 bit Windows 10.

来自 tensorflow 的网站,要求是:

From tensorflow's website, the requirements are :

  • Python 3.5-3.8
  • pip 19.0 或更高版本
  • Windows 7 或更高版本

哪个都满意.

为什么我会收到此错误?

Why am I getting this error?

仅使用 pip install tensorflow 会出现以下错误:

using only pip install tensorflow gets me the following errors:

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

推荐答案

很可能您使用的是 32 位版本的 python 3.8 而不是 64 位版本.您可以通过打开解释器并查看第一行来进行检查.如果它有 32 位(英特尔) 或类似的东西,那么它就是 32 位版本.要获得 64 位版本,请向下滚动到此链接上的文件 https://www.python.org/downloads/release/python-380/ 并选择 x86-64 版本.

It's likely you're using the 32bit version of python 3.8 instead of the 64bit version. You can check by opening the interpreter and looking at the first line. If it has 32 bit (Intel) or something similar, then it would be the 32 bit version. To get the 64bit edition, scroll down to Files on this link https://www.python.org/downloads/release/python-380/ and pick up the x86-64 version.

这篇关于Tensorflow 安装错误:__ 不是此平台上支持的轮子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆