简体   繁体   中英

how to cross compile python packages (e.g. Numpy) for ARM

I know this question have been posted before. But I couldn't find a complete answer on how to do it.

I would like to use python packages with C extensions such as Numpy and Twisted in an embedded system (platform architecture: ARM 32Bit and some Linux distribution).

Info: the tool chain is already configured.

Found this alternatives:

Thank you in advance

Crossenv

But I get the issues with multiarray among working with numpy all the time.

  1. Numpy dependable cross compilations are failing with the issue. So I modified PATH to make them start building.
  2. Built numpy also fires the issue when imported in target python.

For the second issue:

$ sudo apt install python-numpy

is meant to be the solution but since I am developing for an embedded system I cannot/have never tried to use it.

I get to a conclusion that I should cross compile it by myself but then a lot more dependency issues occurred. However, one can try it if the target is not a minimalist linux and apt is available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM