首先在“C:Usersma_pe.condarc”中将以下内容粘贴:
channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ show_channel_urls: true2、将yaml中的channel中的路径删除
然后使用命令:conda env create -f yolo.yaml
如果此时有报错的包,那么就将报错的包的dependencies中的第二个等号后面的内容删除
3、有的包还是找不到?如果还是有错误,发现有的包找不到,就将 dependencies 中的找不到的包放在pip下面,并将等号换成双等号==
如果torch相关的包找不到,那就去“https://download.pytorch.org/whl/torch_stable.html”去下载,然后安装,安装过程看下面的博客:
CUDA11.1安装教程(python3.8)_马鹏森的博客-CSDN博客_cuda11.1
另外一种方法:直接使用代理:
Anaconda在windows环境下走代理_东西山海关的博客-CSDN博客_anaconda 代理



