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版本的)
- TF(tensorflow)安装之python
- tensorflow之变量初始化(tf.Variable)
- Tensorflow之TF-Slim
- tensorflow学习之路(2-2):tf.variable_scope(),tf.name_scope(),tf.get_variable()的认识(补充)
- 5. tensorflow之tf.random_normal_initializer
- TensorFlow学习之路(0):tf.placeholder() & feed_dict={}
- TensorFlow-tf.gfile()模块
- tensorflow之tf.contrib.learn Quickstart
- TensorFlow插曲之 tf.app.run()
- tensorflow API 之 tf.logging.set_verbosity
- Tensorflow+cuda+cudnn+window+Python之window下安装TensorFlow
- TensorFlow 学习(一)—— tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()
- tensorflow学习笔记(三十):tf.gradients 与 tf.stop_gradient()
- tensorflow-BatchNormalization(tf.nn.moments及tf.nn.batch_normalization)
- tensorflow学习之路(2-1):tf.variable_scope(), tf.name_scope(), tf.get_variable()的认识
- tensorflow图片归一化之tf.layers.batch_normalization/tf.nn.batch_normalization/tf.contrib.layers.batch_norm
- Windows安装TensorFlow(TF更新至0.12版,添加了Windows支持)
- Tensorflow函数——tf.variable_scope()
- linux 一些命令
- 数据库三大范式
- **POJ 1008 Maya Calendar解题报告
- 关于Android图表开源库HelloChart的坐标属性设置
- 字符串通配符(OJ)
- TF(tensorflow)安装之python
- spring文件上传
- Ubuntu编译不全缺少服务器文件原因
- Java最不容易明白的知识点【接口】
- Oracle数据笔记-【3】同义词序列视图索引
- 华硕笔记本不小心BIOS恢复出厂设置,电脑找不到硬盘启动项
- 平均年薪23万!为什么却很少见程序员炫富?
- 设计模式之工厂方法模式和开放-封闭原则
- 堆的创建,插入,删除