Skip to main content
Visitor II
December 6, 2019
Solved

How to install python package on STM32MP157c-dk2?

  • December 6, 2019
  • 4 replies
  • 1944 views

Hello,

I have followed this link: https://wiki.st.com/stm32mpu/wiki/X-LINUX-AI-CV_OpenSTLinux_expansion_package and successfully flashed STM32MP157c-dk2 device with AI OpenCV image.

Now, I am trying to install python package

scipy

on the device. But it throws error that

"unable to execute arm-openstlinux_wetson-linux-gnueabi-gcc: No such file or directory" 

and

 "error: command arm-openstlinux_wetson-linux-gnueabi-gcc failed with exit status 1"

Could you please guide me? How can I install a python package on a device once the device is booted with AI OpenCV package.

Thanking you,

Saurabh

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    ​Hi @SChau.2062​ 

    Yes, "apt-get" is now supported in V1.2.0 release delivered 1 week ago.

    Please refer to :

    https://community.st.com/s/question/0D50X0000CDmAyISQV/stm32-mpus-new-ecosystem-release-v12

    Olivier

    4 replies

    Technical Moderator
    December 6, 2019

    Hi @SChau.2062​ 

    There's, so far, no way to install such package at runtime.

    Providing "apt-get" service for such is in the plan for year 2020, we will keep you posted.

    In the meantime you have to manage to cross-compile and install package with Yocto.

    Below links might help you :

    https://wiki.st.com/stm32mpu/wiki/How_to_add_a_customer_application

    https://wiki.st.com/stm32mpu/wiki/How_to_create_a_new_open_embedded_layer

    Hint for scipy :

    https://stackoverflow.com/questions/47770891/cross-compiling-scipy-for-open-embedded ( not validated by ST )

    Hope it help,

    Olivier

    Visitor II
    March 6, 2020

    Hi Olivier,

    Is there any improvement so far to install package at runtime using "apt-get"?

    I am waiting for this feature to install a python package on a device once the device is booted with AI OpenCV package.

    Thanks,

    Saurabh

    Technical Moderator
    March 6, 2020

    ​Hi @SChau.2062​ 

    Yes, "apt-get" is now supported in V1.2.0 release delivered 1 week ago.

    Please refer to :

    https://community.st.com/s/question/0D50X0000CDmAyISQV/stm32-mpus-new-ecosystem-release-v12

    Olivier

    Visitor II
    March 6, 2020

    Great! Thank you!