ssl - 编译apk时Buildozer错误 - pip ssl

标签 ssl pip kivy buildozer

我正在尝试使用 Buildozer 将一个简单的程序编译成适用于 Android 的 apk,但遇到了以下问题。你能帮忙吗?我尝试升级 pip 但这没有帮助:python3 -m pip install --upgrade pip

所以,我恢复到原来的 pip 版本。

单独安装 Cython:pip3 install Cython

但同样的问题仍然存在。我很茫然。 :-(

命令:buildozer android debug

RAN: /bin/bash -c 'venv/bin/pip install Cython'
STDOUT:
WARNING: 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/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

最佳答案

这是一个最近的错误,您需要使用 apt install libssl-dev 安装 libssl-dev

然后你可能还想通过运行 rm -rf .buildozer 来清理你的 buildozer 目录。在包含您的 buildozer.spec 文件的目录中。

应该这样做!

关于ssl - 编译apk时Buildozer错误 - pip ssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61801869/

相关文章:

python - 无法在python脚本中导入DataLoader

Android 4.4 退格键不修改 Kivy TextInput 中的默认文本

docker - docker 容器中的 curl 证书失败

Apache SSL 服务器未启动, "Address already in use"?

python - 将从远程存储库获取的Python包传递给spark Submit/shell

python - 如果没有选择文件,如何知道FileChooserListView结构下的工作目录

python - 如何在kivy(Python)中制作数字键盘?

php - curl SSL 请求 400 错误请求

java - 在 Tomcat 上配置 SSL |获取空白文件

python - 如何为 Python Heroku 项目安装内部需求?