Python inference doesn't work on android #14956
Replies: 1 comment 1 reply
-
The issue you're facing—trying to run PaddleOCR's Python inference on Android—is due to limited platform support for the core PaddlePaddle Python library. Currently, PaddlePaddle does not officially support Android (or iOS) for Python-based inference. As you've noted, it works on Linux and other desktop/server platforms, but importing paddle in a Python environment on Android (e.g., using Kivy or Pydroid3) results in ModuleNotFoundError or similar crashes. This is because PaddlePaddle provides native support only for x86/x86_64 platforms with specific OS configurations and does not distribute Python wheels for ARM-based Android systems. This issue has also been raised in related discussions and issues, such as: To run OCR with PaddlePaddle on Android, you have two main alternatives:
In summary, direct Python inference for PaddleOCR is not currently supported on Android due to limitations in PaddlePaddle's platform support. If you're looking to deploy PaddleOCR on Android, using Paddle Lite or writing a native mobile application is the recommended route. Response generated by 🤖 feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🔎 Search before asking
🐛 Bug (问题描述)
There is a cross platform Python framework for GUI apps named "Kivy", it works on linux windows android and ios. Paddle python works on linux but not on android and not on ios.
🏃♂️ Environment (运行环境)
Android
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
python on android:
import paddle -> library exception
Beta Was this translation helpful? Give feedback.
All reactions