pycharm编辑中遇到的tensorflow和cuda版本不匹配的问题

发布时间 2023-06-14 15:55:57作者: 奋发图强的小赵
起因是报错
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
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.

查了查说是tensorflow和cuda版本不匹配的问题,建议降低tensorflow版本,但是我不知道cuda的版本,cmd后调用指令nvcc -V可以查看cuda版本,调用指令报错显示没有nvcc指令,发现电脑没装cuda

解决办法;1、安装cuda 2、安装tensorflow-gpu

 tf和cuda的版本匹配查看官网https://www.tensorflow.org/install/source?hl=zh-cn#gpu