pip下载扩展包时报错 ValueError: check_hostname requires server_hostname
使用pip或conda等包管理工具下载python的扩展包时报错:
Could not find a version that satisfies the requirement selenium (from versions: )
No matching distribution found for selenium
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) - skipping
或者
ValueError: check_hostname requires server_hostname
解决:
1、换源下载安装
1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
3) http://pypi.douban.com/simple/ 豆瓣
4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
5) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
例(使用清华镜像下载安装 pyecharts扩展包):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts
换源下载后 如果仍然报错则可能是网络代理服务器打开了的问题,
2、在设置中关闭网络代理服务器即可成功下载安装扩展包。
pip下载扩展包时报错 ValueError: check_hostname requires server_hostname相关推荐
- 报错ValueError: check_hostname requires server_hostname
问题大概如上,当我们pip下载包的时候出现这个问题. 很大可能是科学上网的原因,关闭代理即可.
- pip安装报错ValueError: check_hostname requires server_hostname
如题,在执行pip install命令的时候报错了,原因应该是开了梯子. 解决办法就是更换下pip的下载源就好了,我换成了阿里云的,问题就解决了.
- pip ValueError: check_hostname requires server_hostname
网友的方法: https://www.jianshu.com/p/d4af07d5af27 ip安装yapf包时出现 ValueError: check_hostname requires serve ...
- ValueError: check_hostname requires server_hostname的解决办法
在用pip安装scikit-image库时报错:ValueError: check_hostname requires server_hostname 报错ValueError: check_host ...
- pip代理问题–ValueError: check_hostname requires server_hostname
pip代理问题–ValueError: check_hostname requires server_hostname Windows上pip开代理后安装包时出现以上错误,主要原因是因为request ...
- ValueError: check_hostname requires server_hostname解决方法
使用python的pip安装第三方包的时候会出现这个问题 查看了一些解决方法 关掉一些代理VPN然后重试,再不行就关闭计算机代理: PS H:\python_project\Python-Multip ...
- 【踩坑】requests 使用 IP 代理时 ValueError: check_hostname requires server_hostname
requests 使用 IP 代理时 ValueError: check_hostname requires server_hostname 报错原因: urllib3 1.26.xx 版本库有 bu ...
- python pip安装包时出现 ValueError: check_hostname requires server_hostname 错误 解决方法
原因及解决方法 1.这种时候可能是你开了vpn连接了外网,关掉vpn即可. 2.可能你之前开了vpn,导致浏览器代理设置使用了代理服务器,在代理设置中关掉即可,具体步骤以谷歌浏览器为例,看下面两张图. ...
- check_hostname requires server_hostname
系统环境:Win11+python3.97 文章目录 1.错误 2.原因 3.解决方法 4.备注 1.错误 在进行pip更新时显示ValueError: check_hostname requires ...
最新文章
- thinkphp的伪静态化
- win7 安装c语言环境变量,win7下如何配置编程环境变量的方法
- 英语口语(5月17)
- python之_init_函数的简介
- 子类实现父类接口时注解为啥报错_Java中的注解使用:全面性的总结一下
- 谈谈API接口安全性设计思路
- nginx引入自定义的配置文件
- java synchronized 参数_java – 将参数传递给synchronized块的目的是什么?
- html扫雷源码js,js实现扫雷源代码.pdf
- CSS3的box-sizing 属性
- 两计算机网线连接打印机共享打印机共享打印机,打印机、资源共享、协同工作、一根网线连接两电脑的方...
- 风口的猪-中国牛市(小米2016校招)
- 双活数据中心负载均衡理解
- HDU 6438Buy and Resell
- java汉字获取拼音的方法
- java知识精华总结
- C# 创建MDI窗体
- Flask学习笔记总结(一)
- ftl模板导出excel_freemarker导出定制excel
- 人体运动轨迹的人工智能动画模拟