Install nvidia repo packages: Download nvidia machine learning repo package: wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb Install that package: sudo dpkg -i nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb Download nvidia cuda repo package: wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb Install that package: sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb Update apt list && upgrade the packages: sudo apt update && sudo apt full-upgrade Install cuda and libcudnn sudo apt install cuda-9-0 libcudnn7-dev
Install tensorflow-gpu I highly recommend installing tensorflow-gpu using either : virtualenv anaconda