繁体   English   中英

无法使用 pip 安装 tensorflow

[英]Cannot install tensorflow using pip

I am trying to call a simple keras.Sequential() model in python 3.9 (64bit), however when trying to install tensorflow using pip I get the following error:

ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow

堆积此错误后,我遵循了此修复程序: TensorFlow not found using pip并尝试使用最新版本的 CPU 仅 windows 轮使用以下命令:

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

但是,我收到以下错误:

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

我能找到的唯一答案是: Tensorflow install error: not a supported wheel on this platform

但是答案与python2.7有关,不适用于这种情况。

有谁能够帮助理解为什么我发现安装tensorflow如此困难。

谢谢。

看来TensorFlow 只支持 Python 3.5-3.8 ,所以您无法安装它,因为您的 Python 版本是 3.9。

如果要安装 TensorFlow,则需要使用不同版本的 Python。

暂无
暂无

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

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