pip install ValueError: check_hostname requires server_hostname

1 配置默认国内镜像源

到%APPDATA%路径下pip文件夹内创建pip.ini 

写入:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com

2 可能是因为开了vpn,没关代理。

把vpn退了试试

猜你喜欢

转载自blog.csdn.net/Dale_zero/article/details/118328878
今日推荐