一、ValueERROR: check_hostname requires server_hostname
解决办法:设置中,关闭代理服务器
二、ERROR: Cannot determine archive format of xxx
问题:使用pip镜像源下载第三方包时,出现如下错误:
解决办法:添加对镜像源的信任,在安装时采用如下命令:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn package_you_want
举例,想要安装geopy的包:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn geopy
即可安装成功。如下: