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退了试试

Guess you like

Origin blog.csdn.net/Dale_zero/article/details/118328878