pycharm运行错误提示:Could not locate zlibwapi.dll. Please make sure it is in your library path

基于tensorflow2.0的深度学习程序运行时报错如下:

pycharm运行错误提示:Could not locate zlibwapi.dll. Please make sure it is in your library path

意思是找不到zlibwapi.dll这个文件

解决方法:

进入英伟达官方的这个网站:

Installation Guide - NVIDIA Docs

pycharm运行错误提示:Could not locate zlibwapi.dll. Please make sure it is in your library path_第1张图片

1.点击zlib dll下载相关文件,如果是32位就下后面那个

2.然后将下载后的文件解压

3.进入文件zlib123dllx64\dll_x64,将文件夹下的zlibwapi.dII复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin目录下

pycharm运行错误提示:Could not locate zlibwapi.dll. Please make sure it is in your library path_第2张图片

 4.将zlibwapi.lib复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\lib目录下

pycharm运行错误提示:Could not locate zlibwapi.dll. Please make sure it is in your library path_第3张图片

5.问题解决,不报错了 

你可能感兴趣的:(pycharm,python,ide)