![](/img/trans.png)
[英]Installing tensorflow with Pip Python 3.5 anaconda in windows
[英]Installing TensorFlow with Pip Python on Windows
上个月,他们发布了与 windows 的张量流可比性。 查看我已安装 python 3.6 并运行的文档
pip install tensorflow-gpu
但它没有找到它,因此没有安装它。
could not find a version that satisfies the requirements tensorflow-gpu(from versions)
我错过了一些基本的东西吗? 我该如何解决或规避这个问题?
适用于 Windows 的 Python 3.6 稳定版本于 2016 年 12 月 23 日发布,我们尚未为该版本构建 TensorFlow 包。 (我们将在假期后考虑这样做。)目前,您最好的选择是:
这是我为使 tensorflow 与 Windows 一起工作所做的工作。
下载python 3.5.0(来自Python Releases for Windows 的64 位)安装它并通过在 cmd 中运行以下命令来检查 python 版本:
python --version
Python 3.5.0
然后运行以下命令将pip升级到最新
python -m pip install --upgrade pip
现在使用 pip 安装 tensorflow
pip install tensorflow
就是这样,您已经在 Windows 上安装了 tensorflow。 下图显示了当您键入上述命令时会发生什么
验证 tensorflow 是否正常工作的示例。
$ python
...
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
我认为您必须安装 Python 3.5 而不是 3.6。 我有同样的问题。
pip3 安装 tensorflow==tensorflow_version
可用的 tensorflow 版本:(0.12.1、1.0.0、1.0.1、1.1.0rc0、1.1.0rc1、1.1.0rc2、1.1.0、1.2.0rc0、1.2.0rc1、1.2.0rc2、1.22.0 .1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.0, 1.5.0 , 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1,1.9 .0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc.10.12.10rc.2 , 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1., 1.20.2. .0b0, 2.0.0b1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.