【持续更】总结 各种各样的python错误

1、远程调试pycharm时候出现的错误:ImportError

ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

解决方法:pycharm上方菜单栏:run->configurations->environment variable,添加:

LD_LIBRARY_PATH    /home/cudnn5.1/lib64/:/usr/local/cuda-8.0/lib64/

2、安装opencv-python之后出现错误:ImportError

ImportError错误,cannot open shared object file: No such file or directory

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

解决方法:把缺失的包安装好,在终端敲入如下命令:

 apt-get install libsm6

 apt-get install libxrender1

 apt-get install libxext-dev

 

猜你喜欢

转载自blog.csdn.net/Always_ease/article/details/88534566