博客参考
添加conda镜像源
name: NAME
channels:- conda-forge- pytorch- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2- defaults
dependencies:- _libgcc_mutex=0.1=conda_forge- _openmp_mutex=4.5=2_kmp_llvm- ...
保留conda-forge
添加pip镜像源
- pip:- absl-py==1.4.0- aiohttp==3.8.3- aiosignal==1.3.1- ...- -i https://pypi.tuna.tsinghua.edu.cn/simple
在最后添加镜像