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
3、cudnn error
1)环境没配好
2)cudnn.benchmark=False
4、【pip】Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
解决办法:在install之后加–user
pip install --user pkgs
5、optimizer.load_state_dict语句上报out of memory
在cpu上导入数据:map_location='cpu'
checkpoint = torch.load(path, map_location='cpu')
6. cv2.imwrite 失败
要先os.remove源文件,再imwrite
7、pycharm注释 ctrl+/ 不管用
把下图上红框里的Ctrl改成其他键保存就可以了