Python/Kivy和Android环境:未找到Pandas模块

2024-09-27 21:24:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用Python和Kivy创建一个简单的Android应用程序。作为其中的一部分,我正在导入pandas。当我在我的Windows PC上运行它时,这一切似乎都很好。我正在使用Python for Android创建Android应用程序

当我在Android环境中运行它时,我得到:

ModuleNotFoundError: No module named 'pandas'

是什么导致模块无法正确内置到应用程序中?我似乎找不到答案

下面是完整的日志。谢谢

2020-04-25 15:38:05.723 8066-8066/? W/SDLThread: type=1400 audit(0.0:29030): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/math.cpython-38.so" dev="sda35" ino=670093 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.726 8066-8066/? W/SDLThread: type=1400 audit(0.0:29031): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/_queue.cpython-38.so" dev="sda35" ino=670132 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.766 8066-8066/? W/SDLThread: type=1400 audit(0.0:29032): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/_bisect.cpython-38.so" dev="sda35" ino=670095 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.773 8066-8066/? W/SDLThread: type=1400 audit(0.0:29033): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/_sha512.cpython-38.so" dev="sda35" ino=670115 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.776 8066-8066/? W/SDLThread: type=1400 audit(0.0:29034): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/_random.cpython-38.so" dev="sda35" ino=670144 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.796 8066-8066/? W/SDLThread: type=1400 audit(0.0:29035): avc: granted { execute } for path="/data/data/com.graffbt.coronaviruscp/files/app/_python_bundle/modules/_opcode.cpython-38.so" dev="sda35" ino=670086 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file
2020-04-25 15:38:05.853 8025-8066/com.graffbt.coronaviruscp I/python: [INFO   ] [Logger      ] Record log in /data/user/0/com.graffbt.coronaviruscp/files/app/.kivy/logs/kivy_20-04-25_1.txt
2020-04-25 15:38:05.853 8025-8066/com.graffbt.coronaviruscp I/python: [INFO   ] [Kivy        ] v1.11.1
2020-04-25 15:38:05.853 8025-8066/com.graffbt.coronaviruscp I/python: [INFO   ] [Kivy        ] Installed at "/data/user/0/com.graffbt.coronaviruscp/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
2020-04-25 15:38:05.853 8025-8066/com.graffbt.coronaviruscp I/python: [INFO   ] [Python      ] v3.8.1 (default, Apr 20 2020, 03:42:32) 
2020-04-25 15:38:05.853 8025-8066/com.graffbt.coronaviruscp I/python: [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462
2020-04-25 15:38:05.854 8025-8066/com.graffbt.coronaviruscp I/python: [INFO   ] [Python      ] Interpreter at ""
2020-04-25 15:38:05.855 8025-8066/com.graffbt.coronaviruscp I/python:  Traceback (most recent call last):
2020-04-25 15:38:05.855 8025-8066/com.graffbt.coronaviruscp I/python:    File "/content/main.py", line 3, in <module>
2020-04-25 15:38:05.856 8025-8066/com.graffbt.coronaviruscp I/python:  ModuleNotFoundError: No module named 'pandas'
2020-04-25 15:38:05.856 8025-8066/com.graffbt.coronaviruscp I/python: Python for android ended.

Tags: comappfordatatypefilesauditfile

热门问题