cancel
Showing results for 
Search instead for 
Did you mean: 

How to install python package on STM32MP157c-dk2?

SChau.2062
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

​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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SChau.2062
Associate III

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

Olivier GALLIEN
ST Employee

​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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SChau.2062
Associate III

Great! Thank you!