前言:前三步都是狗血淚~~如果僅僅安裝直接跳到第四步!!!
第一步:習慣性的google Git源碼,readME發現源碼安裝太複雜;再百度安裝tensorflow安裝
非常全面的安裝方法(中文):https://www.tensorflow.org/versions/r0.11/get_started/os_setup#pip-installation 或 https://github.com/jikexueyuanwiki/tensorflow-zh/blob/master/SOURCE/get_started/os_setup.md
第二步:開始按照上面的鏈接說明安裝
(1)報錯:IOError:
[Errno 2] No such file or directory: '/tmp/pip-o6Tpui-build/setup.py'
解決辦法:
pip install --upgrade pip
(2)報另外一個錯
報錯:
Google & Baidu沒有結果,沒有解決
第三步:尋求同學幫助
同樣的pip python版本,人家的可以(但是存在一個timeout問題) pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl
記錄一下問題(雖然與本次問題解決無關)
解決方案:(沒有此文件或文件夾,請創建)
[@bjzw_101_144 yapeng]# vi ~/.pip/pip.conf
1 [global]
2 timeout = 6000
1 [global]
2 timeout = 6000
3 index-url = http://pypi.douban.com/simple/
4 [install]
5 use-mirrors = true
6 mirrors = http://pypi.douban.com/simple/
7 trusted-host = pypi.douban.com
第四步:還是沒有解決 --- 再次尋求源碼(安裝成功)
https://github.com/tensorflow/tensorflow
[@10.144.52.197_sjs TF]# pip install --upgrade tensorflow-1.0.1-cp27-none-linux_x86_64.whl ---- 最終通過這種方法安裝成功。(python版本的)