libGL.so.1: cannot open shared object file: No such file or directory code example
Example 1: ImportError: libGL.so.1:
sudo apt update
sudo apt install libgl1-mesa-glx
Example 2: OSError: libespeak.so.1: cannot open shared object file: No such file or directory
pyttsx3 problem:
It's because you don't have espeak installed on your system. That's why it is giving error
sudo apt-get update && sudo apt-get install espeak
Example 3: Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
sudo apt-get install libatlas-base-dev
Example 4: libcuda.so.1: cannot open shared object file: No such file or directory
ls /usr/lib/x86_64-linux-gnu/libcuda.so.1 -la
nvidia-smi
cd /usr/lib/x86_64-linux-gnu
sudo ln -f -s libcuda.so.<yournvidia.version> libcuda.so.1
Example 5: libcusolver.so.9.0: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/
Example 6: libcublas.so.9.0: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/