一、系统环境:
操作系统:Windows 11 专业版
显卡:RTX 4080
CUDA:cuda_12.6.2_560.94_windows.exe、cudnn-windows-x86_64-8.9.7.29_cuda12-archive
python: 3.12.8
二、配置过程
1.设置python国内源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
2.更新pip
python -m pip install --upgrade pip
3.安装cuda
1)在官网下载cuda_12.6.2_560.94_windows.exe和cudnn-windows-x86_64-8.9.7.29_cuda12-archive
CUDA-v12.5
https://developer.nvidia.com/cuda-12-5-0-download-archive
cudnn-v8.9
https://developer.nvidia.com/rdp/cudnn-archive#a-collapse897-120
2)安装cuda_12.6.2_560.94_windows.exe,使用默认路径配置
拷贝cud