cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot use the pip command with the starter package. Is it possible to manage python packages by installing pip?

KNaka.6
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
KNaka.6
Associate II

When I used the SD card connected to the STM32MP157C-DK2 board without rewriting it, the apt-get command did not work properly.

However, after rewriting the image of the starter package according to the wiki and trying it, the apt-get command became available and pip was installed correctly with the command you taught me.

Thank you very much.

Best Regards!​

View solution in original post

5 REPLIES 5
PatrickF
ST Employee

Hi,

Once connected to the web (using RJ45 LAN or wifi), just need to install pip with something like:

apt-get update
apt-get install python3-pip
python3 -m pip install -U pip

Regards.

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.
KNaka.6
Associate II

Thank you!

But, But in my environment I get the following error:

apt-get update <---OK

apt-get install python3-pip <--OK

​python3 -m pip install -U pip

Could not import runpy module

ImportError: No module named 'runpy'

​Can you give me some advice

and, I question I have

I can "apt-update" with the downloaded starter package, but "apt-update" does not work with Linux on the SD card that comes with the board.​

Is Linux on the included SD card different from the starter package?

Hi,

When you mention "in my environment", could you elaborate more ?

The command I listed should be run on the board (not on your PC). If you are running a custom board, please provide more information as in that case this is not anymore a 'starter package'.

I'm not specialist on SW, I just copy the command which was working to install few python packages on my DK2 having latest starter package (Ecosystem v3.0.0, using Linux kernel 5.10).

Assuming you are using a DK1/DK2 board, maybe worth to first populate the latest starter package on the SD-card (board are shipped with starter package, but depending on manufacturing date, maybe not the latest one).

See https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

Note also that using "apt-get install python3-pip" will install 'pip' (as you wanted for), but also some 'compile' tools which are not intended to be supported on the target. This mean some very specific python package which need compilation during install might not be usable.

Regards.

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.
KNaka.6
Associate II

When I used the SD card connected to the STM32MP157C-DK2 board without rewriting it, the apt-get command did not work properly.

However, after rewriting the image of the starter package according to the wiki and trying it, the apt-get command became available and pip was installed correctly with the command you taught me.

Thank you very much.

Best Regards!​

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.