一、报错截图:
2021-10-18 15:44:59.182284: 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-10-18 15:44:59.182515: 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是使用下面命令安装的
pip install tensorflow
我的python版本是python3.7
电脑环境是:Windows
二、报错原因:可能使用pip install tensorflow命令默认给我下载成GPU版本的TensorFlow版本了
三、解决方法:
到TensorFlow官网下载和自己电脑系统以及python版本匹配的CPU版本的.whl文件
下载完成后,进入cmd,cd到.whl文件的下载目录。输入下面命令
pip install tensorflow_cpu-2.6.0-cp37-cp37m-win_amd64.whl
就可以了~