ImportError: cannot open shared object file: No such file or directory

I installed TF with GPU support on my Ubuntu. I also intalled cuda 9.0 for it but still tensorflow shows this error. I then tried installing CUDA 8.0 as one of the other threads here suggested but CUDA 8.0 isn’t released for Ubuntu 17.04. Now I dont understand what to do but it would be nice if there was some sort of config file through which I could disable Tensorflow to go for GPU until tensorflow binaries are updated to point at CUDA 9.0.

it can be solved easily by simple runing this line beause importing TF couldnt find ths file i had the same problem and it worked …

sudo cp /usr/local/cuda-8.0/lib64/ /usr/local/lib/ && sudo ldconfig