最近刚在conda装好tensorflow,然后用pycharm运行代码时发生了以下错误:
Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
Ignore above cudart dlerror if you do not have a GPU set up on your machine.
首先tensorflow gpu 2.1.0版本对应CUDA10.1,我安装的是10.1版本,没有问题,那问题可能是我安装的位置,因为我没有把CUDA安装在C盘,装在E盘,所以pycharm设置一下。
pycharm点击run,然后点击Edit Configurations,在Environment variables添加自己CUDA安装的位置,如下
然后就OK啦