TensorFlow: libcudart.so.7.5: cannot open shared object file: No such file or directory

After editing .profile file you either need to log out and log back in or run the following command:

source ~/.profile

The solution is persistent so there is no need to perform it ever again.


sudo nano /etc/ld.so.conf.d/nvidia.conf

Add this:

/usr/local/cuda-8.0/lib64

/usr/local/cuda-8.0/lib

run

sudo ldconfig

if it works well ,please tell me.


If you are using pip but other answers did not work for you, try this.

In my case this exact problem was solved by reinstalling tensorflow using:

pip install tensorflow

Pip must have messed up its dependencies or something when installing other packages after Tensorflow installation (I've run pip install -r requirements.txt afterwards for my own purposes --> that broke Tensorflow).