搭建tensorflow深度学习环境过程中遇到的那些问题

时间:2025-05-08 15:46:04

文件缺失

报错:Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found

原因:不详

解决措施:从以下地址下载所缺失的dll文件,然后放到C:\Windows\System32文件夹中,报错消失。

Download missing DLL files for free | DLL‑ missing DLL files for free to fix DLL errors. If you want help to install DLL files, DLL‑ Client is the DLL fixer you :///

报错1:ModuleNotFoundError: No module named 'keras';

原因:编译器的路径可能不对。

解决措施:小编用的sublime,自己通过Tools-Build System-Build New System新建了路径。具体可参考:/p/d5b17d3ab964https:///p/d5b17d3ab964

报错2:ModuleNotFoundError: No module named ''

原因:可能是tensorflow的版本(2.3)与keras的版本不兼容(2.3.1)。

解决措施:改为from import ....

报错:module '' has no attribute '_TensorLike'

原因:可能是tensorflow的版本(2.3)与keras的版本不兼容(2.3.1)。

解决措施:采用tensorflow本身自带的,即改为。

解决完以上措施,终于能跑起来了,不容易!

最终组合:CUDA10.0  cuDNN7.6  tensorflow2.2  keras2.3.1  python3.7