添加阿里云镜像源
conda config --add channels https://mirrors.aliyun.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.aliyun.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.aliyun.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.aliyun.edu.cn/anaconda/cloud/pytorch/linux-64/
conda config --set show_channel_urls yes
安装环境
- 通过bash安装miniconda3,Link。
- conda 名称partial_holo,
- python版本为3.10
- 清华源默认cpu版本,使用其他国内镜像源(阿里源)
conda create -n partial_holo python==3.10
conda activate partial_holo
pip install torch torchaudio torchvision
//pip install torch==2.1.1+cu121 torchaudio torchvision -f https://mirrors.aliyun.com/pytorch-wheels/cu121
问题