Copy the python3 installation package to Linux and run it. Error while loading shared libraries: libpython3.6. M.so. 1.0

Error when running python3 command:python: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file:no such file or directory。

Just copy this file to /usr/lib64

 

cp /python3 installation directory/lib/libpython3.6m.so.1.0 /usr/lib64/

Read More: