Reference website:
[1] tensorflow official website Tutorials
[2] Geek College 's translation of TensorFlow's official website tutorial
[3] How to install TensorFlow under Csdn-ubuntu
http://blog.csdn.net/zhaoyu106/article/details/52793183 [CSDN]
Https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#pip-installation
Https://www.tensorflow.org/versions/r0.11/get_started/os_setup#test_the_tensorflow_installation (official website tutorial)
http://blog.csdn.net/mydear_11000/article/details/52020835 (previous version of TensorFlow)
HTTP://WWW.JIANSHU.COM/P/636C6477250A (build TensorFlow virtual machine learning environment)
Https://github.com/CreatCodeBuild/TensorFlow-Chinese-Tutorial (Chinese video tutorial)
Ubuntu Installation TensorFlow
- Source installation (not successful)
- installation Bazel the dependency
- installation Bazel
- Pip installation
Pip Watercress Source Installation
Https://www.douban.com/note/302711300/
using the image source is simple, with - I. specify on the line:
- sudo easy_install-i http://pypi.douban.com/simple/ salttesting
- sudo pip install-i http://pypi.douban.com/simple/ salttesting
PIP installation
Note TensorFlow version and the corresponding CUDA Libraries and CuDNN version
installation TensorFlow:
0.8.0 Dependent cuda7.5 and the cudnnv4
# Ubuntu/linux 64-bit, CPU only, Python 2.7:
$ sudo pip install--upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_ X86_64.whl
# ubuntu/linux 64-bit, GPU enabled, Python 2.7. Requires CUDA Toolkit 7.5 and CuDNN v4.
# for other versions, see "Install from sources" below.
$ sudo pip install--upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0. 8. 0-CP27-NONE-LINUX_X86_64.WHL
# Mac OS X, CPU only:
$ sudo easy_install--upgrade six
$ sudo pip install--upgrade HTTPS://STORAGE.GOOGLEAPIS.COM/TENSORFLOW/MAC/TENSORFLOW-0.8.0-PY2-NONE-ANY.WHL
0.12.0 Dependent cuda8.0 and the cudnnv5
The GPU version works best with Cuda Toolkit 8.0 and CuDNN v5.1. Other versions is supported.
We have also uploaded the binaries to Pypi, so can simply install TensorFlow on Linux, Mac or Windows with pip install . Note you'll need PIP version 8.1 or later for the following commands to work on Linux:
$ pip Install TensorFlow
For installing the version with GPU support, please use:
$ pip Install Tensorflow-gpu
environment variable (not set)
- Export ld_library_path="$LD _library_path:/usr/local/cuda/lib64:/usr/local/cuda/extras/cupti/lib64"
- Export cuda_home=/usr/local/cuda
Test if Python is installed successfully
test with the following section of code TensorFlow whether the installation was successful:
- $ 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
Train the first network
- $ cd models/tutorials/image/mnist
- $ python convolutional.py
Ubuntu Installation TensorFlow