Open main menu

DAVE Developer's Wiki β

Changes

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

1,251 bytes added, 10:35, 7 October 2021
Installing python packages
Python 3.5.5
root@desk-mx6ul-axelulite:~# pip --version
pip 9.0.3 from /usr/lib/python2.7/site-packages (python 2.7)
root@desk-mx6ul-axelulite:~#
</pre>
 
This shows that <code>pip3</code> is not present in the root file system and should be installed: the simpler way is using python3 itself and the provided python script [https://bootstrap.pypa.io/pip/3.5/get-pip.py get-pip.py] for version 3.5:
 
<pre class="board-terminal">
root@desk-mx6ul-axelulite:~# python3 get-pip.py
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting pip<21.0
Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
|################################| 1.5 MB 176 kB/s
Collecting wheel
Downloading wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, pip
Successfully installed pip-20.3.4 wheel-0.37.0
root@desk-mx6ul-axelulite:~# pip
pip pip2 pip2.7 pip3 pip3.5
root@desk-mx6ul-axelulite:~#
</pre>
 
After the installation, <code>pip3</code> is the latest version available for '''Python3 3.5.5''':
 
<pre class="board-terminal">
root@desk-mx6ul-axelulite:~# pip3 --version
pip 20.3.4 from /usr/lib/python3.5/site-packages/pip (python 3.5)
root@desk-mx6ul-axelulite:~# easy3_install --version
8,220
edits