1辅搬、tensorflow 導(dǎo)入Tensorflow出現(xiàn)ImportError: DLL load failed: 找不到指定的程序
Python3.6+tensorflow 2.1.0
導(dǎo)入import tensorflow as tf
報(bào)以下錯(cuò)誤
image.png
查詢各種問題原因由于tensorflow 2.1.0 版本較高笆载,需要安裝 CUDA啤挎、cuDNN神經(jīng)網(wǎng)絡(luò)加速庫等拟杉,直接降版本
執(zhí)行:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.8
2翅娶、numpy與tensorflow 的兼容問題
numpy1.18.1+tensorflow1.8
提示如下警告
image.png
錯(cuò)誤信息打印:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type' _np_qint8 = np.dtype([("qint8", np.int8, 1)])
numpy降版本
執(zhí)行:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy==1.16
安裝完成