windows環境安裝tensorflow

來源:互聯網
上載者:User

標籤:技術分享   nat   font   pretty   world   div   www   class   方法   

本機環境win7,想要安裝tensorflow,試了好久,才裝好。官網才是王道。

注意:目前tensorflow 在 windows 環境中僅支援 python 3.5. *64,。所以python版本一定要下對。

我採用的方法是

Installing with native pip,使用 CPU 版本。

下面是分享的python 連結 http://pan.baidu.com/s/1qXGlYdI

後面的命令就參照官網https://www.tensorflow.org/install/install_windows

C:\> pip3 install --upgrade tensorflow

 

裝好以後進行測試

$ python

Enter the following short program inside the python interactive shell:

 
>>> import tensorflow as tf
>>> hello = tf.constant(‘Hello, TensorFlow!‘)
>>> sess = tf.Session()
>>> print(sess.run(hello))

If the system outputs the following, then you are ready to begin writing TensorFlow programs:

 
Hello, TensorFlow!

配置PyCharm

習慣了使用JetBrain系列開發工具,於是選用PyCharm來開發,配置如下: 
建立工程後在Setting–Project Interpreter選擇tensorflow下的Python解譯器,例如我的解譯器位置: 
 
等部署完後便可跑個HelloWorld了

 

 2 設定檔編碼

 

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.