windows环境搭建记录

摘要:记录在windows环境下搭建深度学习环境。

Nvidia相关

驱动更新为NVIDIA Studio驱动程序的591.44版本,最高支持cuda13.1

cuda为13.0.2

cudnn为9.14.0

安装miniconda

安装网址(清华源)

官方路径

这里下载的是Miniconda3-py311_25.11.1-1-Windows-x86_64.exe

  • 添加系统环境变量,指向miniconda、miniconda/Script、miniconda/Library/bin

  • 换源:在命令行输入

1
2
3
4
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
  • 阻止自动进入base环境:conda config --set auto_activate_base false

虚拟环境记录

pytorch(py3.11.8)

1
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130