問題描述
我正在嘗試構建一個 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 錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!