首页 > 解决方案 > 从 pip 安装 tensorflow 时出错

问题描述

我安装了python,然后安装了anaconda。当我尝试从 pip 命令安装 tensorflow 时,出现此错误。有人知道原因吗?

Microsoft Windows [Version 10.0.16299.98]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Windows\system32>pip install tensorflow.
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow.

C:\Windows\system32>

标签: pythontensorflowpipanacondaconda

解决方案


TensorFlow 的安装说明位于此处。您会看到除了使用 pip 之外还有几个步骤。长话短说,一旦你在一个新的环境中设置使用pip install --upgrade tensorflow

话虽如此,您可能希望使用 Anaconda 来安装它而不是 pip。Anaconda 作为包管理器通常会更好,只要有可能,您就应该使用 Anaconda。


推荐阅读