解决ImportError:lib***.so--cannot open shared object file: No such file or directory

1-软链接方式

    1.1 找到文件

            find  /  -name  lib**.so   (缺失的动态链接库)  

    1.2 建立软链接

            ln - /path/to/lib**.so   /usr/lib

     1.3 sudo ldconfig

(后两种没有试过)

2- 修改LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH

sudo ldconfig

3-修改/etc/ld.so.conf

vim  /etc/ld.so.conf

add  /where/you/install/lib

sudo ldconfig




猜你喜欢

转载自blog.csdn.net/hhhuua/article/details/80705655
今日推荐