使用 buildozer 打包 apk 时出现 mpmath 和 sympy 错误

2023-03-21移动开发问题
16

本文介绍了使用 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 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何在 Cocos-SpriteBuilder 中添加 iAd
How to add iAd in Cocos-SpriteBuilder(如何在 Cocos-SpriteBuilder 中添加 iAd)...
2024-08-12 移动开发问题
3

如何在 COCOS2d Android 中使用 CClistview?
How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)...
2024-08-12 移动开发问题
5

Apple 目前不接受使用此版本 SDK 构建的应用程序
Apple is not currently accepting applications built with this version of the SDK(Apple 目前不接受使用此版本 SDK 构建的应用程序)...
2024-08-12 移动开发问题
36

未找到 SpriteBuilder 图像文件
SpriteBuilder image file not found(未找到 SpriteBuilder 图像文件)...
2024-08-12 移动开发问题
8

如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像
How to add seperate iPad and iPhone images in spritebuilder- Cocos2d 3.2(如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像)...
2024-08-12 移动开发问题
4

cocos2d-android:如何显示分数
cocos2d-android: how to display score(cocos2d-android:如何显示分数)...
2024-08-11 移动开发问题
7