今天准备跑一下EfficientDet
的Pytorch
实现,在配置环境的过程中发现之前配置的Annaconda
清华源莫名其妙404了!于是只能选择一个一劳永逸的方法:更换会默认配置,然后配置proxy。
Google了一大圈,解决方案都是如下:
首先移除配置好的镜像源:
1
conda config --remove-key channels
然后检查是否成功:
1
conda config --show channels
结果:
1
2
3(pytorch) C:\Users\Frank Young>conda config --show channels
channels:
- defaults移除成功。
然而却没有移除.condarc
中的default和custom channels,以及channel alias都没有修改,导致上述步骤完全无效,应该是当时更换清华源的时候使用了不恰当的方式。
解决:直接删除原.condarc
,重新运行conda prompt
会重新生成空的.condarc
,此时配置代理:
1 | proxy: |
再安装pyyaml
:
1 | (pytorch) C:\Users\Frank Young>conda install -c anaconda pyyaml |
成功!特此纪念我浪费的时间……