報錯: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
- 1⃣️
etc/ld.so.conf
:查看當前目錄下是否有python3.conf文件 - 2⃣️
vim python3.conf
:輸入你的python文件夾裏的bin路徑 例如: /usr/local/python/lib
- 3⃣️ 按下 esc 鍵 --> 輸入
:wq
--> 按下 enter 鍵 - 4⃣️ 刷新輸入命令
ldconfig