There was a problem confirming the ssl certificate

这篇具有很好参考价值的文章主要介绍了There was a problem confirming the ssl certificate。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

参考:https://blog.csdn.net/dou3516/article/details/111881479
使用pip install 某个包的时候报错ModuleNotFoundError: No module named ‘某个包’ ,错误原因是:

There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate

此时需要获得 ssl证书的认证,需要在原来的安装命令后增加:-i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com (也可换其他源)

例如:

pip install scipy

改为:

pip install scipy -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

说明:这是阿里源 --trusted-host mirrors.aliyun.com 这是为了获得ssl证书的认证文章来源地址https://www.toymoban.com/news/detail-739547.html

到了这里,关于There was a problem confirming the ssl certificate的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • SSL certificate problem: unable to get local issuer certificate解决办法

    在github上用https克隆代码时报了如下错误 这是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错。原因是因为未知的没有签署过的证书意味着可能存在很大的风险。解决办法就是通过下面的命令将git中的sslverify关掉: 然后在

    2024年02月11日
    浏览(36)
  • Git SSL certificate problem: unable to get local issuer certificate

    错误:     Push failed             Unable to access \\\'https://github.com/ttsin/gitTest.git/\\\': SSL certificate problem: unable to get local issuer certificate 你在远程访问GitHub时,出现 这个错误通常表示Git无法验证GitHub的SSL证书,因为缺少本地颁发机构(CA)的根证书。 方法一: 1. 更新Git的CA证书:

    2024年02月14日
    浏览(38)
  • curl: (60) SSL certificate problem: self-signed certificate in certificate chain解决

    从本地电脑上使用curl请求后端服务器api的时候报下面错误: 导致错误的原因: 默认情况下,curl 会尝试根据系统上安装的默认CA验证 SSL 证书, 但是我们的server上的证书是在内网的CA申请的,本地电脑上没有相应根证书,所以验证失败。 解决方案: 使用 curl -k , 跳过证书验证,

    2024年02月03日
    浏览(33)
  • SSL certificate problem: self signed certificate in certificate chain错误的全网详细解决方法

    今天使用 git clone xxx.git 项目时,却报出如下的错误信息: 即 SSL certificate problem: self signed certificate in certificate chain 错误。 正赶上最近 ChatGPT 比较火,可以借助它来分析错误,如下图所示: This problem occurs when the SSL certificate presented by the server is not signed by a trusted certificate aut

    2024年02月07日
    浏览(36)
  • curl请求https证书过期的问题:SSL certificate problem: certificate has expired

    写了两个系统,系统A使用 curl 去请求系统B,但是不知道为什么会报错 SSL certificate problem: certificate has expired 系统A使用了 https 但是系统B没有使用 https 系统A的SSL并未过期,而且在两个系统在同一台服务器时并未报错,所以不是SSL证书的问题 解决办法: 关闭curl对证书验证,可

    2024年02月16日
    浏览(40)
  • Git Clone 报错 `SSL certificate problem: unable to get local issuer certificate`

    如果您在尝试克隆Git存储库时得到 “SSL certificate problem: unable to get local issuer certificate” 的错误,这意味着Git无法验证远程存储库的SSL证书。如果SSL证书是自签名的,或者SSL证书链有问题,就会发生这种情况。 想要修复这个错误,可以尝试以下解决方案: 一、 禁用SSL验证: 一般

    2024年02月07日
    浏览(44)
  • php出现SSL certificate problem: unable to get local issuer certificate的解决办法

    当在本地使用curl或者一些其它封装好的http类库或组件(如php界 知名的 http客户端 Guzzle)需要访问https时,如果本地没有配置证书,会出现SSL certificate problem: unable to get local issuer certificate的报错信息。 解决办法一(环境配置方面) ①、下载pem文件 ②、将文件拷贝到任意目录

    2024年02月09日
    浏览(39)
  • 解决 cURL error 60: SSL certificate problem: unable to get local issuer certificate

    异常抛出 cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 报错原因:因为没有配置信任的服务器HTTPS验证。默认情况下,cURL被设为不信任任何CAs,因此浏览器无法通过HTTPs访问你服务器。  1.下载证书 2.下载后放入PHP扩展

    2024年02月07日
    浏览(47)
  • Composer出现 SSL certificate problem: unable to get local issuer certificate 报错的解决方法

    Composer出现crul SSL报错的问题是没有安装CA证书导致的!!! 错误信息如下: [ComposerDownloaderTransportException]                                                                                                      curl error 60 while downloading https://repo.packagist.org/package

    2024年02月03日
    浏览(47)
  • 关于 虚拟机git突然出现“.git/‘: SSL certificate problem: certificate is not yet valid”导致无法同步代码 的解决方法

    若该文为原创文章,转载请注明原文出处 本文章博客地址:https://hpzwl.blog.csdn.net/article/details/132143989 红胖子(红模仿)的博文大全:开发技术集合(包含Qt实用技术、树莓派、三维、OpenCV、OpenGL、ffmpeg、OSG、单片机、软硬结合等等)持续更新中…(点击传送门)   虚拟机的副

    2024年02月04日
    浏览(44)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包