After installing python3, the following error occurs when running:
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
Solution: Set the environment variable:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin
Note: where /usr/local/python3/ is the directory where python3 is installed