install tensorflow from source ubuntu 18.04

C++
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
Source

Also in C++: