用buildozer包装APK时出现mpmath和sympy错误 [英] mpmath and sympy error while packing apk with buildozer

查看:127
本文介绍了用buildozer包装APK时出现mpmath和sympy错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建apk,但它一直告诉我我需要mpmath => 0.19. 问题来自sympy,因为当我构建没有它的apk时,一切都按预期工作.我不知道为什么即使我在要求中包含mpmath时也需要mpmath,但我仍然遇到相同的错误.我需要帮助.

I am trying to build a apk but it keeps telling me that i need mpmath=>0.19. the problem is coming from sympy because when i built the apk without it everything worked as expected. I don't know why it need mpmath even when I include mpmath in the requirement I keep getting the same error. I need help please.

buildozer.spec

命令:

buildozer android调试部署运行.

buildozer android debug deploy run.

规格文件: https://pastebin.com/71maKs5n

完整日志

`https://pastebin.com/EvALr3fW`

推荐答案

但是我找到了一个对我有用的简单解决方案.

I however find a simple solution that worked for me.

我通过从/usr/local/lib将模块复制到main.py文件和buildozer.spec文件所在的我的应用程序目录中,并从应用程序需求中删除了sympy和mpmath,从而将模块本地导入.

I imported locally the modules, by copying them from /usr/local/lib to my app directory where the main.py file and buildozer.spec files are located, and by removing sympy and mpmath from app requirements.

这篇关于用buildozer包装APK时出现mpmath和sympy错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆