Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX6UL-AN-0004: Using Python for Embedded applications

4,118 bytes added, 12:23, 7 October 2021
DNF
=== DNF ===
 
In case of some troubles (which can happens using <code>easy_install</code> or <code>pip</code>), other packages can be directly installed using <code>dnf</code> from the already built ''rpm'' packages built with Yocto.
 
For example, when ''non-pure'' python packages or in case of mismatched versions, to install them from the pre-build images in Yocto:
 
<pre class="board-terminal">
root@desk-mx6ul-axelulite:~# dnf install python3-flask
Last metadata expiration check: 1:46:26 ago on Thu Oct 7 10:35:14 2021.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
python3-flask cortexa7hf_neon 0.12.2-r0 cortexa7hf 110 k
Installing dependencies:
python3-click cortexa7hf_neon 6.7-r0 cortexa7hf 110 k
python3-itsdangerous cortexa7hf_neon 0.24-r0 cortexa7hf 23 k
python3-jinja2 cortexa7hf_neon 2.10-r0 cortexa7hf 187 k
python3-markupsafe cortexa7hf_neon 1.0-r0 cortexa7hf 25 k
python3-simplejson cortexa7hf_neon 3.13.2-r0 cortexa7hf 50 k
python3-werkzeug cortexa7hf_neon 0.14.1-r0 cortexa7hf 375 k
python3-werkzeug-tests cortexa7hf_neon 0.14.1-r0 cortexa7hf 32 k
 
Transaction Summary
================================================================================
Install 8 Packages
 
Total download size: 912 k
Installed size: 3.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): python3-itsdangerous-0.24-r0.cortexa7hf_ 205 kB/s | 23 kB 00:00
(2/8): python3-flask-0.12.2-r0.cortexa7hf_neon. 358 kB/s | 110 kB 00:00
(3/8): python3-jinja2-2.10-r0.cortexa7hf_neon.r 550 kB/s | 187 kB 00:00
(4/8): python3-click-6.7-r0.cortexa7hf_neon.rpm 227 kB/s | 110 kB 00:00
(5/8): python3-werkzeug-tests-0.14.1-r0.cortexa 445 kB/s | 32 kB 00:00
(6/8): python3-simplejson-3.13.2-r0.cortexa7hf_ 643 kB/s | 50 kB 00:00
(7/8): python3-markupsafe-1.0-r0.cortexa7hf_neo 365 kB/s | 25 kB 00:00
(8/8): python3-werkzeug-0.14.1-r0.cortexa7hf_ne 603 kB/s | 375 kB 00:00
--------------------------------------------------------------------------------
Total 934 kB/s | 912 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-werkzeug-0.14.1-r0.cortexa7hf_neon 1/8
Installing : python3-werkzeug-tests-0.14.1-r0.cortexa7hf_neon 2/8
Installing : python3-markupsafe-1.0-r0.cortexa7hf_neon 3/8
Installing : python3-jinja2-2.10-r0.cortexa7hf_neon 4/8
Installing : python3-simplejson-3.13.2-r0.cortexa7hf_neon 5/8
Installing : python3-itsdangerous-0.24-r0.cortexa7hf_neon 6/8
Installing : python3-click-6.7-r0.cortexa7hf_neon 7/8
Installing : python3-flask-0.12.2-r0.cortexa7hf_neon 8/8
Verifying : python3-flask-0.12.2-r0.cortexa7hf_neon 1/8
Verifying : python3-click-6.7-r0.cortexa7hf_neon 2/8
Verifying : python3-itsdangerous-0.24-r0.cortexa7hf_neon 3/8
Verifying : python3-jinja2-2.10-r0.cortexa7hf_neon 4/8
Verifying : python3-werkzeug-0.14.1-r0.cortexa7hf_neon 5/8
Verifying : python3-werkzeug-tests-0.14.1-r0.cortexa7hf_neon 6/8
Verifying : python3-simplejson-3.13.2-r0.cortexa7hf_neon 7/8
Verifying : python3-markupsafe-1.0-r0.cortexa7hf_neon 8/8
 
Installed:
python3-flask.cortexa7hf_neon 0.12.2-r0
python3-click.cortexa7hf_neon 6.7-r0
python3-itsdangerous.cortexa7hf_neon 0.24-r0
python3-jinja2.cortexa7hf_neon 2.10-r0
python3-markupsafe.cortexa7hf_neon 1.0-r0
python3-simplejson.cortexa7hf_neon 3.13.2-r0
python3-werkzeug.cortexa7hf_neon 0.14.1-r0
python3-werkzeug-tests.cortexa7hf_neon 0.14.1-r0
 
Complete!
root@desk-mx6ul-axelulite:~#
</pre>
== import packages==
8,220
edits