Official TensorFlow guide: https://www.tensorflow.org/install/install_sources#ConfigureInstallation
sudo apt-get install python-pip python-dev python-virtualenv python-pycurl libffi-dev libssl-dev build-essential gfortran libatlas-base-dev
# GPU-specific depenencies
sudo apt-get install libcupti-dev
# Bazel install
sudo apt-get install software-properties-common swig
sudo add-apt-repository ppa:webupd8team/java