01 Windows安裝Tensorflow

來源:互聯網
上載者:User

標籤: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.