Embarcadero / python4delphi

Fork of P4D adding FireMonkey wrapper and Android support
MIT License
86 stars 18 forks source link

Python Android third-party packages #79

Open bilalcndn opened 9 months ago

bilalcndn commented 9 months ago

Hi,

I'm trying to develop an FMX application for Android using Python in Delphi. I've been following your demo application named 'Mobile Controls' as an example. Currently, I can write Python code into a memo and get output from another memo. However, I haven't been able to install any third-party packages. I've reviewed your videos and documents but couldn't find a solution. For instance, I want to use the 'numpy' library in my application. How can I add this? I would greatly appreciate your assistance.

Note: I'm using Delphi 12.

Best regards.

lmbelo commented 3 months ago

Hello @bilalcndn, thanks for reaching out.

Packages like NumPY are actually extension modules, so they are written in C. To make them available on Android, you need to compile it by yourself, targeting the Python for Android distribution used by your app.