Tensorflow: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

Solution 1:

Found the solution:

I reinstalled nvidia-381, CUDA-8.0 (using the runfile) and cuDNN 6.0. Then I added the following in my .bashrc:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/

Solution 2:

No need for reinstallation. Install nvidia-cuda-dev:

sudo apt install nvidia-cuda-dev

Install cuDNN (which you download from https://developer.nvidia.com/cudnn), and set LD_LIBRARY_PATH accordingly (to cuda/lib64).