There was a problem confirming the ssl certificate

简介: There was a problem confirming the ssl certificate

最近项目上用到Bata函数用到scipy

ModuleNotFoundError: No module named ‘scipy’ 执行 pip install scipy报错:

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

经查询执行pip install scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 还是报错 猜想可能是Python源的问题

修改为:pip install scipy -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com 问题解决

说明:这是阿里源 --trusted-host mirrors.aliyun.com 这是为了获得ssl证书的认证


pip和pip3的区别

1. 安装了python3之后,会有pip3

2. 当一台电脑同时有多个版本的Python的时候,用pip3就可以自动区分用Python3来安装库。避免和Python2发生冲突

3. 如果只安装了Python3,用pip还是pip3都一样的


相关文章
|
网络安全 PHP
cURL error 60: SSL certificate problem: self signed certificate in certificate
一、问题 cURL error 60: SSL certificate problem: self signed certificate in certificate chain - 服务器http302 出现这个一般是自签名证书的问题
2572 0
|
9月前
|
安全 网络安全 PHP
解决SSL routines:ssl3_get_server_certificate:certificate verify failed
解决SSL routines:ssl3_get_server_certificate:certificate verify failed
319 0
|
网络安全
ssl.SSLError [SSL CERTIFICATE_VERIFY_FAILED] certificate verify failed
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
173 0
|
网络安全
【IntelliJ IDEA】连接https报错问题: E230001: Server SSL certificate verification failed:
最近新安装了一个2018版本的idea,但是用idea去连接SVN的时候出现了这样的错误,在网上搜了很多,都没有用,最后找到这样的方式,把问题搞定,果断把解决方式记录下,以便帮助更多的人。
248 1
【IntelliJ IDEA】连接https报错问题: E230001: Server SSL certificate verification failed:
|
网络安全 开发工具 git
git SSL certificate problem: unable to get local issuer certificate
git SSL certificate problem: unable to get local issuer certificate
207 1
|
TensorFlow 网络安全 算法框架/工具
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
最近在学习TensorFlow,获取fashion_mnist数据集的时候出现了一点小问题,报错内容如下: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108) ————————————————
1017 0
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
|
网络安全 PHP
【微信公众号】获取用户信息cURL error 60: SSL certificate: unable to get local issuer certificate
【微信公众号】获取用户信息cURL error 60: SSL certificate: unable to get local issuer certificate
160 0
|
网络安全
curl error: SSL certificate problem: unable to get local issuer certificate解决方案
curl error: SSL certificate problem: unable to get local issuer certificate解决方案
316 0
|
安全 网络安全 数据安全/隐私保护
Python:urllib2.URLError urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
Python:urllib2.URLError urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
449 0
Python:urllib2.URLError urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed