Skip to main content
Visitor II
January 6, 2020
Question

How to install additional Python dependencies on the DK2

  • January 6, 2020
  • 1 reply
  • 902 views

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 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 6, 2020

    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