创建虚拟环境:
利用指令conda create -n 虚拟环境名字 python = 版本
添加镜像加速 conda create -n 虚拟环境名字 python = 版本 -c 镜像地址
就使用base环境
镜像:
清华镜像:Index of /anaconda/pkgs/main/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror(不好使)
阿里巴巴镜像:
https://mirrors.aliyun.com/anaconda/pkgs/main(已关闭)
中科大镜像:
https://mirrors.ustc.edu.cn/anaconda/pkgs/main
CUDA
确定算力 7.5
CUDA Driver 版本 > = CUDA Runtime 版本
我的CUDA Diver Version : CUDA Version: 12.5
利用conda或者pip安装Pytorch
conda install xxx
conda create -n yyy
默认下载地址-defaults
conda install xxx -c 通道地址 c 就是channel(通道)
conda create xxx -c 通道地址
更新显卡驱动
CUDA 版本13.4(确定13.2)
python 3.12
未安装torchaudio包