Workaround 1. In terminal execution:
Export ld_library_path= "$LD _library_path:/usr/local/cuda/lib64" Export Cuda_home
However, this command must be executed every time the TensorFlow is run, and still error in the Spyder, Jupyter notebook.
Workaround 2. To write the path in BASHRC:
sudo vim ~/. Bashrcexport ld_library_path= "$LD _library_path:/usr/local/cuda/lib64" Export Cuda _home=/usr/local/~/.BASHRC
But that hasn't solved my problem yet.
Workaround 3. Completely resolved
Echo $LD _library_path
My results: ":/usr/local/cuda/lib64"
To execute the command again:
sudo ldconfig/usr/local/cuda/lib64
Solve the problem perfectly, at this time regardless of terminal, Spyder, Jupyter notebook import tensorflow, import Keras are not error.
Export ld_library_path= "$LD _library_path:/usr/local/cuda/lib64"
Export Cuda_home=/usr/local/cuda
Ubuntu under TensorFlow error Libcusolver.so.8.0:cannot open shared object file:no such file or directory