標籤:user local nload python cpu 變數 googl windows 顯示
1、安裝Python。
點擊此處下載Python3.5.2。安裝Python時一定要選擇安裝pip。
2、配置Python環境變數。
將%安裝路徑%\Scripts添加到Path下面。
3、修改Pip國內源。
在C:\Users\l{你的使用者名稱}\AppData\Local下面建立pip檔案夾,在pip檔案夾中建立pip.conf檔案,寫入以下內容。
[global]index-url = http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com
4、安裝Tensorflow。
開啟PowerShell,執行以下代碼。
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc1-cp35-cp35m-win_amd64.whl
5、測試安裝。
開啟Python IDLE,輸入import tensorflow as tf,運行。如果不報錯,證明安裝成功。
6、參考資料。
原生Windows安裝Tensorflow0.12的方法:http://blog.csdn.net/include1224/article/details/53452824
注意事項:
1、使用參考資料中的包安裝的Tensorflow,其中的TensorBoard,在Windows下無法正常顯示,這是由於缺少資源套件的原因。詳情請見:https://github.com/tensorflow/tensorflow/issues/5983。官方給出的解決方案是在新版本出來以前,使用http://ci.tensorflow.org/view/Nightly/job/nightly-win/的版本安裝。rc0和rc1都存在這個問題。
01 Windows安裝Tensorflow