Error running after python3 installation: error while loading shared libraries: libpython3.6m.so.1.0

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325136078&siteId=291194637