python - 从 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>
解决方案
TensorFlow 的安装说明位于此处。您会看到除了使用 pip 之外还有几个步骤。长话短说,一旦你在一个新的环境中设置使用pip install --upgrade tensorflow
话虽如此,您可能希望使用 Anaconda 来安装它而不是 pip。Anaconda 作为包管理器通常会更好,只要有可能,您就应该使用 Anaconda。
推荐阅读
- java - 返回字符串中元素的真值的布尔语句直接相互跟随
- javascript - 有没有办法在 React 中进行嵌套导入?
- javascript - 替换对象中的嵌套字段值
- node.js - SSH 隧道阻止我生成的脚本退出
- html - 在 Bootstrap 4 网格区域内显示视频
- openshift - OpenShift 中所有 SCC 的详细描述
- c# - Array[i, j] = rnd.Next(0, 100); 的解释
- python - Django/Wagtail:如何检查用户是否有权访问给定页面?
- php - PHP Division 返回包含 E 问题的浮点数
- c++ - C++ 类与库