TensorFlow安裝入門從Ubuntu到Windows

網上有篇安裝 TensorFlow,寫的很詳細,我把它MARK在這裏了,:)

http://www.leiphone.com/news/201606/ORlQ7uK3TIW8xVGF.html

來自雷鋒網

------------------------------------------------------------------------------------

20170117

我現在是使用了VM安裝到U盤裏面的方法,選擇的ISO是14.0.4  64bit的版本,千萬不要裝最新的版本以及32位版本,我裝了16.0.4,16版沒有軟件中心了,源也不好用,軟件都裝不上; 第二次換了14,32bit,源是好了,但是tensorflow不支持32bit,第三次換成14,64bit,目前軟件都裝上去了,最後來安裝tensorflow。

VM安裝到U盤裏面的方法,參考:http://blog.csdn.net/qq_24369113/article/details/53179218

另外我裝了遠程,參考:http://jingyan.baidu.com/article/8ebacdf0cdc64949f75cd555.html


-------------------------------------------------------------------------------

20170118

我放棄了使用UBUNTU安裝Tensorflow的想法,對於經常使用WINDOWS的同學來說UBUNTU是個很大的坑,什麼源啦,什麼Update啦,各種不服;

放棄的原因是我在官網www.tensorflow.org上(注意不是國產官網http://www.tensorfly.cn/),看到說明中有說Tensorflow對WINDOWS的支持,並只支持Python3.5和WIN 64 BIT。

那麼下一個問題來了,我本機上面已經有2.7的版本,現在需要2.7和3.5共存, 參考了大神的文章:http://blog.csdn.net/infin1te/article/details/50445217

那麼朋友們說,這下應該一切順利了吧,吧,吧。。。想得美

執行命令

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl

居然報錯cannot remove entries from nonexistent c:\anaconda2\envs\py3\lib\site-packages\easy-install.pth

What???? 又什麼情況,nnd

這次參考了位國外大神iRapha 的建議:

This person seems to have had the same problem: #64 (comment)

They solved it by downloading .whl file manually (https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl ) and run $pip install tensorflow-0.5.0-py2-none-any.whl

鏈接:https://github.com/tensorflow/tensorflow/issues/135

注意下載的whl文件要是你自己想要的。

果然問題解決。

當import tensorflow as tf 沒報錯的時候,痛哭流涕呀。

我知道後面還有很多坑,坑,坑,坑....................................................................

-------------------------------------------------------------------------------

發佈了9 篇原創文章 · 獲贊 18 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章