编译APK时Buildozer错误-Pip SSL

时间:2020-05-14 15:59:05

标签: ssl pip kivy buildozer

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

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

单独安装Cython:pip3安装Cython

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

命令:buildozer android调试

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.

1 个答案:

答案 0 :(得分:0)

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

安装libssl-dev

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

应该这样做!