How to port a python package to a embedded system

Nathan Ernst nathan.ernst at gmail.com
Tue Apr 25 22:35:23 EDT 2017


As previously asked: what board are you using? There might be a simple
response to your issue, but you've yet to state the board you're using. You
will not get any useful responses until you answer this very, very simple
question.

If you can't "pip install", you'll probably have to build from source and
the board will likely matter very much. Building from source isn't normally
terribly difficult, but no one here can help you if we don't know your
environment.

Help us help you.

On Tue, Apr 25, 2017 at 8:41 PM, chenchao <chenchao at inhand.com.cn> wrote:

> Hi, all:
>
>     I have installed the PIP on my arm board now.  But the 'numpy' package
> includes some of C codes. This part of the C code must be x-compiled and I
> don't know how to x-compiled this package. So, is there a good idea for
> this issue?
>
>
>
> On 04/25/2017 01:15 PM, Michael Torrie wrote:
>
>> On 04/25/2017 08:07 AM, MRAB wrote:
>>
>>> On 2017-04-25 07:28, chenchao wrote:
>>>
>>>> Hi, all:
>>>>
>>>>        I installed it by 'pip install numpy' or 'python setup.cfg
>>>> install'  on my PC, but I do not know how to do this on my arm board.
>>>> Because of my arm board does not have tool of pip. could you please tell
>>>> me any idea? Thanks!
>>>>
>>>> This might help:
>>>
>>> How to install pip on Ubuntu
>>> http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
>>>
>> If chenchao installed Python from a distro package (always recommended)
>> then that link is exactly what he needs to do.  In fact it would be a
>> good idea to install numpy from the repositories using apt-get also, if
>> it's there.
>>
>> If he installed python from source (sounds like he did, since he
>> "x-compiled" it), he should already have pip as it's a standard part of
>> python since 2.7.9.  If pip isn't in the path, he can try:
>>
>> python -m pip install numpy
>>
>> and see what happens. Alternatively he can download this:
>> https://bootstrap.pypa.io/get-pip.py
>>
>> and then run it with:
>>
>> python get-pip.py
>>
>>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list