You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Anaconda安装TensorFlow后无法识别NVIDIA RTX2060 GPU的求助

Anaconda安装TensorFlow后无法识别NVIDIA RTX2060 GPU的求助

我最近在做YOLOv8项目时,想结合TensorFlow一起用,但遇到了个头疼的问题——TensorFlow死活识别不到我的GPU。最开始我是用pip安装的TensorFlow,后来听别人说用conda安装GPU版本更靠谱,就换成conda重新装了一遍,结果还是没解决问题。

我跑了一段测试代码来验证GPU识别情况:

import tensorflow as tf 
print(tf.config.list_physical_devices('GPU'))

输出结果如下,最后显示的是空列表,说明确实没识别到GPU:

2025-03-26 18:01:44.726963: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable 'TF_ENABLE_ONEDNN_OPTS=0'. 2025-03-26 18:01:45.737605: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable 'TF_ENABLE_ONEDNN_OPTS=0'. []
Process finished with exit code 0

我的安装步骤是这样的:先用conda create --name tf-gpu tensorflow-gpu创建了专门的conda环境,然后用conda activate tf-gpu激活环境。

补充一下我的环境信息:Python版本是3.12,显卡是NVIDIA RTX 2060,驱动已经更新到最新版本,操作系统是Windows 11。

有没有大佬能帮忙分析下问题出在哪,或者给点解决方向?提前谢谢大家了!

备注:内容来源于stack exchange,提问作者James Pelham-Burn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.13 19:59:52