Installing Cuda 10 and TensorFlow 2.0 Ubuntu 19.10

Installing Cuda 10 from the repositories, I had problems with unmet dependencies. After a lot of troubleshooting the sequence that worked for me was:

sudo apt install nvidia-driver-435
sudo apt install nvidia-cuda-toolkit

Then I had Cuda 10 installed. I don't know if this solves your problems with tensorflow.


Use default driver for Nvidia GPU

then install Package "nvidia-cuda-toolkit"(10.1.168-1build1) for Ubuntu eoan

➜  ~ sudo apt install nvidia-cuda-toolkit -y

➜  ~ which nvcc
/bin/nvcc

➜  ~ nvcc --version 
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Apr_24_19:10:27_PDT_2019
Cuda compilation tools, release 10.1, V10.1.168

https://www.ubuntuupdates.org/package/core/eoan/multiverse/base/nvidia-cuda-toolkit