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

Sho*_*Das 6 ssl pip kivy buildozer

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

\n\n

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

\n\n

单独安装Cython:pip3 install Cython

\n\n

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

\n\n

命令:\xc2\xa0buildozer android 调试

\n\n
RAN: /bin/bash -c \'venv/bin/pip install Cython\'\nSTDOUT:\nWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\n
Run Code Online (Sandbox Code Playgroud)\n\n

我怎样才能解决这个问题?

\n\n
Could not fetch URL\xc2\xa0https://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\nERROR: Could not find a version that satisfies the requirement Cython (from versions: none)\nERROR: No matching distribution found for Cython\nWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\n
Run Code Online (Sandbox Code Playgroud)\n

Eri*_*rik 3

这是最近出现的错误,您需要使用以下命令安装 libssl-devapt install libssl-dev

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

应该这样做!