涉及报错:
- “check_hostname requires server_hostname”
- “‘bytes’ object has no attribute ‘get’”
- “Unable to load configuration file.”
- “failed with initial frozen solve.”
通过搜索引擎了解到:
其中,第一条报错大概率是代理问题;中间两条报错大概率是配置 .condarc 文件时候格式错误;最后一条报错可能和镜像源有关。
尝试过的解决方案
方法1:如果你打开了代理,关闭代理
方法2:检查配置文件 .condarc
它的路径往往是: C:/user/[YOUR USERNAME]/.condarc
请检查镜像源配置,这里给出清华镜像源的使用方法:Anaconda 镜像使用帮助
请注意以下几个配置是否存在:
channel_priority: flexible
allow_other_channels: true
配置清华镜像源:
channels:
-