我正在尝试使用 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/