Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1741913
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

分类: LINUX

2018-02-21 15:08:31

1.  tensorflow的网站我是打不开的,不知道为什么,需要搬个梯子去看看.
域名解析也正常,只是无法访问而已。

点击(此处)折叠或打开

  1. ping -c4 tensorflow.org
  2. PING tensorflow.org (216.239.32.21) 56(84) bytes of data.

  3. --- tensorflow.org ping statistics ---
  4. 4 packets transmitted, 0 received, 100% packet loss, time 3056ms

2. 好在还有github ->

点击(此处)折叠或打开

  1. https://github.com/tensorflow/tensorflow
首先创建virtual - env.

点击(此处)折叠或打开

  1. python3.5 -m venv TensorEnv
  2. cd TensorEnv
  3. mkdir -p TensorFLow
  4. source bin/activate
下载文件

点击(此处)折叠或打开

  1. wget ""
然后使用pip完成安装:

点击(此处)折叠或打开

  1. pip3 install tf_nightly-1.head-cp35-cp35m-linux_x86_64.whl
有如下报错:

点击(此处)折叠或打开

  1. error: invalid command 'bdist_wheel'
  2.   
  3.   ----------------------------------------
  4.   Failed building wheel for gast
需要升级setuptools.

点击(此处)折叠或打开

  1. pip3 install setuptools --upgrade
然后再次安装

点击(此处)折叠或打开

  1. pip3 install tf_nightly-1.head-cp35-cp35m-linux_x86_64.whl
完成后来实验下:

点击(此处)折叠或打开

  1. >>> import tensorflow as tf
  2. >>> hello = tf.constant('Hello,
  3. >>> sess = tf.Session()
  4. 2018-02-21 15:06:08.405164: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
TensorFlow编译的时候没有支持CPU的某些指令。
参看这个:


阅读(2807) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~