$ cat ~/.condarc
# https://help.mirrors.cernet.edu.cn/anaconda/
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.zju.edu.cn/anaconda/pkgs/main
- https://mirrors.zju.edu.cn/anaconda/pkgs/r
- https://mirrors.zju.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.zju.edu.cn/anaconda/cloud
pytorch: https://mirrors.zju.edu.cn/anaconda/cloud/
sudo bash Anaconda3-2024.02-1-MacOSX-x86_64.sh
# 虛擬環境, base 環境失敗
sudo conda create -n pytorch
conda activate pytorch
sudo conda install -n pytorch pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 -c pytorch
sudo conda install -n pytorch spyder-kernels=2.4