只需要激活相应的虚拟环境,然后使用下面一个命令,即可完成安装
conda install tensorflow-gpu==2.6.0
Anaconda 会自动安装cudatoolkit与cudnn
成功界面,成功检测到了GPU