ImportError: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

This error can occur if you have used “apt” to install python3.9 on Ubuntu Linux.

 

It can be resolved by using apt to also install “libpython3.9”.