libnss3.so cannot open shared object file no such file or directory code example

Example 1: 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 2: Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

sudo apt-get install libatlas-base-dev

Example 3: libespeak.so.1: cannot open shared object file: No such file or directory

sudo apt-get update && sudo apt-get install espeak