简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM