1.查看/usr/lib/x86_64-linux-gnu/目录下是否存在libpython3.m.so.1.0文件,或者直接全盘搜索:
sudo find / -name libpython3.6m.so.1.0
2.如果不存在则重新安装一下Python3.6即可:
sudo apt-get install python3.6
3.如果存在则需要设置环境变量:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin
ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
原文:https://www.cnblogs.com/laosan007/p/11737704.html