TF(tensorflow)安装之python

来源:互联网 发布:知乎施工排水 编辑:程序博客网 时间:2024/04/28 07:41

前言:前三步都是狗血泪~~如果仅仅安装直接跳到第四步!!!

第一步:习惯性的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版本的)




0 0