tensoflow 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!

tensoflow 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!

1 下载源码编译zlib

https://github.com/madler/zlib

使用 cmake-gui 工具
tensoflow 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!_第1张图片
点击 Configure 无错
然后点击 Generate 无措

tensoflow 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!_第2张图片
默认安装路径是 C:/Program Files (x86)/zlib/
点击open Project
打开vs
tensoflow 报错 Could not locate zlibwapi.dll. Please make sure it is in your library path!_第3张图片

选择Release x64
编译ALL_BUILD
再编译 INSTALL
安装到 C:/Program Files (x86)/zlib/

复制到cuda 目录

然后复制
C:/Program Files (x86)/zlib/bin/zlib.dll

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin
zlib.dll重新命名为 zlibwapi.dll

解决问题

你可能感兴趣的:(AI,tensorflow)