关了VPN,使用了清华源,还用了一些搜到的方法,都没用,最后的是修改的.condarc文件
参考??????(29条消息) 【anaconda】Collecting package metadata (current_repodata.json): failed / Solving environment: failed_miracleoa的博客-CSDN博客
修改前我的.condarc长这样:
ssl_verify: true show_channel_urls: true channels: ? - conda-forge ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ ? - https://anaconda.org ? - bioconda ? - r
按照方法修改成了这样:
channels: ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ ? - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ ? - defaults ?? proxy_servers:? ? ? http: socks5://127.0.0.1:1080
ssl_verify: False show_channel_urls: True allow_other_channels: True
然后就ok了?
|