Python python pip 安装第三方模块报 check_hostname requires server_hostname 错误

萧帅 · 2021年06月01日 · 12436 次阅读

报错 python3 ValueError: check_hostname requires server_hostname

解决方案:
检查是否设置了代理,如果有关闭即可

使用 pip 命令提示 WARNING: Ignoring invalid distribution
WARNING: Ignoring invalid distribution -ip (d:\python37\lib\site-packages)

解决方案:
删除 x:\x\python3x\lib\site-packages~ip* 这个波浪线开头的目录就可以了,可能是 pip 旧版本备份。

问题解决思路来源:
https://ask.csdn.net/questions/7424019
https://ask.csdn.net/questions/7407916

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册