安装好python3后,运行出现下面错误:
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
解决方案:设置环境变量:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin
注:其中/usr/local/python3/为python3安装的目录
原文地址:https://www.cnblogs.com/zhangtingzu/p/8977428.html
时间: 2024-11-08 21:33:26