【发布时间】:2020-09-23 16:38:54
【问题描述】:
我正在尝试在我的 PC 上安装 tensorflow,但我不断收到错误消息。
我在网上看到了多篇关于 tensorflow 安装错误的帖子,但我发现的只是解决方案说 python 的版本不兼容。但是,我使用的是 python 3.8,并且我使用的是 tensorflow 网站上提供的 python 3.8 的 URL,所以我不明白这可能是什么问题。
我正在使用的命令:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl
我得到的错误:
ERROR: tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
我正在使用python 3.8、pip 20.1.1,我的电脑运行的是 64 位 Windows 10。
来自 tensorflow 的网站,要求是:
- Python 3.5-3.8
- pip 19.0 或更高版本
- Windows 7 或更高版本
什么都满意。
为什么会出现这个错误?
编辑:仅使用 pip install tensorflow 会出现以下错误:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
【问题讨论】:
-
你能检查一下你的python版本是64位吗?您可以通过打开解释器并查找 32 位或 amd64 来检查
-
为什么没有
pip install tensorflow? -
@viewed:在 tensorflow 在 PyPI 中之前,它必须通过 url 包含,这可能是一个原因。这个问题可能与stackoverflow.com/q/38896424/4575793 重复 - 特别是考虑诸如stackoverflow.com/a/41084963/4575793 之类的答案
标签: python python-3.x tensorflow pip