TF Q&A
“Could not load library cudnn_cnn_infer64_8.dll. Error code 126”
出问题的环境为CUDA 11.5 和CUDNN 8.3.1(8.3.0也会出问题),换成CUDNN 8.2.4就好了
“ImportError: DLL load failed while importing _imaging”
_imaging模块在pillow包里,可以把pillow包卸载(pip uninstall pillow)再重新安装。
- 如果出现
ERROR: Cannot uninstall 'XXX'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall
,原因是XXX
没法更新,可以使用pip install XXX --ignore-installed
重新安装XXX
包,再安装pillow就好 - 实在不行就把matplotlib和pillow都卸载了,重新安装
- 如果出现
PermissionError: [WinError 5] 拒绝访问
,找到拒绝访问的文件夹或文件,
(图片来源于网络,侵删)