本文介绍了buildozer错误:ssl证书有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用ubuntu Linux的虚拟机中.所以我想用buildozer构建一个apk,在我的需求中,除了kivy和python3外,我什么都没有.因此,当我运行buildozer android ebug deploy run命令时,当它运行到一半时,它总是显示错误.:

I am in virtual machine with ubuntu Linux.So I wanted to build a apk with buildozer and in my requirements I have nothing except kivy and python3. So when I run the buildozer android ebug deploy run command and when it is halfway through it, it showing me always the error .:

这是错误无法获取URL https://pypi.org/simple/cython :确认ssl证书时出现问题:HTTPSConnectionPoolhost = pypi.org.无法连接到HTTPS URL,因为ssl模块不可用

This is the errorCould not fetch URL https://pypi.org/simple/cython: There was a problem confirming the ssl certificate: HTTPSConnectionPoolhost = pypi.org . Cant connect to HTTPS URL because the ssl module is not available

注意:buildozer尝试安装证书时显示错误.因此,我尝试了以下解决方案:-在stackoverflow中走了一些答案-安装了libssl-dev,因为它是ssl错误-为pip和我的虚拟机安装了所有需要的软件包

NOTE: The error is showing up when buildozer is trying to install certifi.So I tried these solutions:-- Gone trough some answers in stackoverflow-- installed libssl-dev, because it was a ssl error-- installed all need packages for pip and my virtual machine

但是他们都没有帮助我.我的要求中甚至没有认证

But none of them helped me. I don't even have certifi in my requirements

推荐答案

所以我终于弄清楚了.对于在Linux中有相同问题的任何人. sudo apt安装libssl-dev.然后执行buildozer Android清理并删除.buildozer文件.然后只执行buildozer Android调试,而不执行buildozer Android调试部署.您可以稍后再做.

So I finally figured it out. For anyone who has same problem in Linux. Do sudo apt install libssl-dev. Then do buildozer Android clean and delete your .buildozer file. Then do buildozer Android debug only not buildozer Android debug deploy run. You can do it later.

这为我解决了这个问题

这篇关于buildozer错误:ssl证书有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:21