Tensorflow installing error: __ is not a supported wheel on this platform

点点圈 提交于 2021-02-16 20:14:49

问题


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

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.

The command I'm using:

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

The error I'm getting:

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

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

From tensorflow's website, the requirements are :

  • Python 3.5-3.8
  • pip 19.0 or later
  • Windows 7 or later

Which are all satisfied.

Why am I getting this error?

EDIT: 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

回答1:


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.



来源:https://stackoverflow.com/questions/62198966/tensorflow-installing-error-is-not-a-supported-wheel-on-this-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!