cancel
Showing results for 
Search instead for 
Did you mean: 

How to install additional Python dependencies on the DK2

JDUMA
Associate II

Hello, I'd like to install Python dependencies to run a RTL-SDR python program on the discovery kit and I failed to execute the following command line below : 

apt-get install python-numpy  (or python3-numpy).

Do you know how to install numpy on the DK2 ?

BR 

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @JDUMA​ 

apt-get service is not yet available for OpenSTLinux, it will come with next V1.2.0 release in February this year.

In the meantime, actually python3-numpy is already part of the Distribution package but not compiled and installed by default.

2 ways to install it on target, the complete/proper one :

Adding it to RDEPENDS_packagegroup-framework-tools-python3 variable in layers/meta-st/meta-st-openstlinux/recipes-st/packagegroups/packagegroup-framework-tools.bb and rebuild the full image and reflash it on the DK2.

one shortcut for a try :

do "bitbake python3-numpy"

The generated debian package will be available in : tmp-glibc/deploy/deb/cortexa7t2hf-neon-vfpv4/

Copy it on target and install it with dpkg -i python3-numpy*.deb

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.