[英]Tensorflow installation error: not a supported wheel on this platform - Python 3.6.7 - pip 20.0.2
I know this question has been asked a couple of times but I can't seem to find a proper answer.我知道这个问题已被问过几次,但我似乎找不到正确的答案。 I am trying to install tensorflow on my Windows x64 machine but keep on getting the error: ERROR: tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
我正在尝试在我的 Windows x64 机器上安装 tensorflow,但不断收到错误消息:错误:tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl 在此平台上不受支持。
I work with : - Python 3.6.7 - pip 20.0.2 - virtualenv 20.0.4我使用: - Python 3.6.7 - pip 20.0.2 - virtualenv 20.0.4
after activating the virtualenv: .\\venv\\Scripts\\activate激活 virtualenv 后:.\\venv\\Scripts\\activate
I try pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl我尝试pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl
for which I get: ERROR: tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.我得到:错误:tensorflow_cpu-2.1.0-cp36-cp36m-win_amd64.whl 不是这个平台上支持的轮子。
If anyone has ran on these issues, should I upgrade / downgrade any of these versions of Python, pip or virtualenv ?如果有人遇到过这些问题,我应该升级/降级 Python、pip 或 virtualenv 的任何这些版本吗?
If you have conda installed, I can help you.如果您安装了 conda,我可以帮助您。
Start with conda base shell (start menu -> Anaconda -> Anaconda prompt).从 conda base shell(开始菜单 -> Anaconda -> Anaconda prompt)开始。
1) create environment 1)创造环境
conda create --name tensorflow21_env
2) activate environment 2)激活环境
conda activate tensorflow21_env
3) install 3)安装
conda install python=3.7
pip install tensorflow-cpu #install tensorflow=2.1.0;
I worked with Python 3.7.6 and pip 20.0.2.我使用 Python 3.7.6 和 pip 20.0.2。
pip installed package: pip 安装包:
tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl
I hope it helps.我希望它有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.