tensorflow 1.8.0 code example

Example 1: update tensorflow pip

######## for Python 2.7
pip install --upgrade pip
pip install --upgrade tensorflow

######## for Python 3.n
pip3 install --upgrade pip
pip3 install --upgrade tensorflow

Example 2: install tensorflow from source ubuntu 18.04

sudo apt install pkg-config zip g++ zlib1g-dev unzipwget https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-installer-linux-x86_64.shchmod +x bazel-0.19.2-installer-linux-x86_64.shsudo ./bazel-0.19.2-installer-linux-x86_64.sh