简体   繁体   English

无法使用 pip 版本 20 安装 tensorflow,找不到版本?

[英]Can't install tensorflow using pip version 20, no versions found?

I am running a python code for which I need tensorflow 2.0, but when running pip install tensorflow (or pip3), I get the following error:我正在运行需要 tensorflow 2.0 的 python 代码,但是在运行pip install tensorflow (或 pip3)时,出现以下错误:

Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow找不到满足张量流要求的版本(来自版本:)没有找到与张量流匹配的分布

I checked the tensorflow website and I'm running python version 3.7, so I tried the wheel they suggested for Windows 64-bit, CPU-only ( https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.0.0-cp37-cp37m-win_amd64.whl ) but I get the following error now:我检查了 tensorflow 网站,我运行的是 python 3.7 版,所以我尝试了他们为 Windows 64 位,仅 CPU 建议的轮子 ( https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.0 .0-cp37-cp37m-win_amd64.whl )但我现在收到以下错误:

ERROR: tensorflow_cpu-2.0.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.错误:tensorflow_cpu-2.0.0-cp37-cp37m-win_amd64.whl 在此平台上不受支持。

My system's properties are below: enter image description here我的系统属性如下:在此处输入图像描述

Any idea what the issue could be?知道可能是什么问题吗? Thanks!谢谢!

TensorFlow requires 64-bit Python, your Python is 32-bit. TensorFlow 需要 64 位 Python,你的 Python 是 32 位。 Install 64-bit Python.安装 64 位 Python。

TensorFlow currently support Python up to 3.7 so do not install Python 3.8. TensorFlow 目前最多支持 Python 3.7,所以不要安装 Python 3.8。 Install 64-bit Python 3.7.安装 64 位 Python 3.7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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