Ubuntu18.04+python3.6+pip3入门tensorflow
Ubuntu18.04+python3.6+pip3入门tensorflow 最近课程要求学习tensorflow,在中文社区跑了一下入门例程,在这总结一下踩的一些坑 学习过程如下: 根据官方入门手册我进行的是最简单的二进制安装cpu版本 pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl 然后就是测试例程: 运行 TensorFlow 打开一个 python 终端: $ python >>> import tensorflow as tf >>> hello = tf.constant('Hello, TensorFlow!') >>> sess = tf.Session() >>> print sess.run(hello) Hello, TensorFlow! >>> a = tf.constant(10) >>> b = tf.constant(32) >>> print sess.run(a+b) 42 >>> 这些都十分顺利,一点问题都没有。 接下来就是: 面向机器学习初学者的 MNIST 初级教程 这是整个新手入门最坑的地方。。。 先来看入门手册开篇: TensorFlow Python API 依赖