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

找到合适的tensorflow版本

输入下列命令安装tensorflow,其中2.3.0根据自身情况可进行修改。

pip install tensorflow==2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

安装成功后,import tensorflow

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

cudart64_101.dll 免费下载 | DLL‑files.com

在该网址中下载cudart64_101.dll,并将cudart64_101.dll放至C://windows//system32目录下。

再次import tensorflow

运行成功

你可能感兴趣的:(tensorflow,人工智能,python)