Tensorflow报错 Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not found

报错

import tensorflow as tf
2020-11-19 21:06:46.915407: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-11-19 21:06:46.915938: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

 

找到cudart64_101.dll文件,将其复制到C:\Windows\System32即可解决

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