Anaconda下CUDA版本错误

在Anaconda中安装tensorflow-gpu,会自动安装cuda10.0.130版本,运行程序时产生版本错误

WARNING:tensorflow:From D:\ProgramFiles\Anaconda3\envs\Tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.

InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

电脑CUDA版本为8.0,与anaconda中版本不匹配

1. 第一种解决办法:更新电脑中的CUDA版本

在官网下载新的CUDA版本https://developer.nvidia.com/cuda-toolkit-archive

2. 第二种解决办法:将Anaconda中CUDA降为低版本
此方法同时会改变tensorflow的版本,如果是尝试代码复现,不建议使用。

发布了3 篇原创文章 · 获赞 1 · 访问量 1830

猜你喜欢

转载自blog.csdn.net/Mrm_cong/article/details/89532046
今日推荐