欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

通过conda或者pip安装包时出现There was a problem confirming the ssl certificate报错

发布时间:2023/12/9 编程问答 28 豆豆
生活随笔 收集整理的这篇文章主要介绍了 通过conda或者pip安装包时出现There was a problem confirming the ssl certificate报错 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

一、通过.txt安装package

1、pip install -r xxx.txt

2、conda install  --yes --file xxx.txt

二、解决报错

参考地址:https://www.itread01.com/content/1542198799.html

--trusted-host很重要

pip install xlrd -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

其他源:

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/ 中國科學技術大學

总结

以上是生活随笔为你收集整理的通过conda或者pip安装包时出现There was a problem confirming the ssl certificate报错的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。