I cannot use the pip command with the starter package. Is it possible to manage python packages by installing pip?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-07 7:04 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 6:24 PM
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!​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-07 8:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-09 5:23 PM
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?
​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-09 11:43 PM
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).
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 6:24 PM
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!​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-10 11:14 PM
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'
