问题
pip install xxx的时候
报错
...
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname
解决
网络问题
关掉代理
如果安装源比较慢, 更换国内镜像, 选择其中一个进行更换源
# 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# 豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/