python - 无法使用 pip 安装 tensorflow
问题描述
我正在尝试keras.Sequential()
在 python 3.9(64 位)中调用一个简单的模型,但是在尝试tensorflow
使用安装时pip
出现以下错误:
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
堆积此错误后,我遵循了此修复:TensorFlow not found using pip并尝试使用以下命令使用最新版本的 CPU only windows wheel:
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 installation error: not a supported wheel on this platform
然而,答案与这种情况有关python2.7
,但不适用于这种情况。
有没有人能帮助理解为什么我发现它很难安装tensorflow
。
谢谢。
解决方案
TensorFlow似乎只支持 Python 3.5-3.8,因此您无法安装它,因为您的 Python 版本是 3.9。
如果要安装 TensorFlow,则需要使用不同版本的 Python。
推荐阅读
- r - 如何遍历多个文件夹中的多个文件?
- google-sheets - 如何 SUM() 单元格值范围作为带有“$”字符的文本?
- java - 为什么这些线程没有有序地开始和结束?如何解决?
- python - 如何在kivy中旋转不同角度的标签
- javascript - 如何让我的机器人在一段时间后发送随机生成的消息?
- node.js - 如何在节点 js 中捕获 redis 查询的输出?
- python-3.x - 如何将一组标记化句子提供给 Word2vec 以获取嵌入?
- python - 印尼语情绪分析
- c# - 使用 httpclient 限制使用带宽进行下载
- python - 熊猫在日期列的 7 天范围内逐行分组