Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll not found Ignore above(
Posted ZSYL
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll not found Ignore above(相关的知识,希望对你有一定的参考价值。
问题描述
运行Tensorflow时出现报错
import tensorflow as tf
tf.__version__
2021-07-30 10:09:39.772752: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror:cudart64_110.dll not found
2021-07-30 10:09:39.774449: 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.
tf.__version__
查看CUDA版本
看报错信息也能看出来时GPU的问题。
查阅资料后时GPU的版本与TensorFlow的版本不一致。
对应关系参见:https://tensorflow.google.cn/install/source#gpu
win+R --> cmd
nvidia-smi
请参考:如何查看Win11的CUDA版本
解决方法
降低TensorFlow版本
pip install --ignore-installed --upgrade tensorflow==<版本>
OK!
以上是关于Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll not found Ignore above(的主要内容,如果未能解决你的问题,请参考以下文章
Bug解决Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll
Bug解决Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll
Ubuntu下TensorFlow报错:Could not load dynamic library ‘libcudnn.so.8‘; dlerror: libcudnn.so.8: cannot..
安装tensorflow后报错Could not load dynamic library ‘cudart64_110.dll‘; dlerror:cudart64_110.dll not found
解决TensorFlow-GPU 2.x使用GPU报错:Could not load dynamic library ‘libcudnn.so.7‘
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘