![](/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.