Open main menu

DAVE Developer's Wiki β

Changes

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

1,843 bytes added, 13:36, 13 October 2021
Virtual environments
You are using pip version 9.0.1, however version 21.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@desk-mx6ul-axelulite:~#
</pre>
* update ''pip3'' in the the <code>virtual environment</code>
pip 20.3.4
setuptools 28.8.0
(sbcrindesk-env) root@desk-mx6ul-axelulite:~#
</pre>
then in this way it is possible to install the required packages (with their specific version required) only in this ''virtual environment''(which is different from the ''root'' installation): <pre class="board-terminal">(desk-env) root@desk-mx6ul-axelulite:~# pip3 install requests==2.25.0DEPRECATION: 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 requests==2.25.0 Downloading requests-2.25.0-py2.py3-none-any.whl (61 kB) |################################| 61 kB 467 kB/sCollecting idna<3,>=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) |################################| 58 kB 598 kB/sCollecting chardet<4,>=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) |################################| 133 kB 2.1 MB/sCollecting certifi>=2017.4.17 Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB) |################################| 149 kB 2.1 MB/sCollecting urllib3<1.27,>=1.21.1 Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB) |################################| 138 kB 2.1 MB/sInstalling collected packages: urllib3, idna, chardet, certifi, requestsSuccessfully installed certifi-2021.10.8 chardet-3.0.4 idna-2.10 requests-2.25.0 urllib3-1.26.7(desk-env) root@desk-mx6ul-axelulite:~# pip3 listDEPRECATION: 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.Package Version---------- ---------certifi 2021.10.8chardet 3.0.4idna 2.10pip 20.3.4requests 2.25.0setuptools 28.8.0urllib3 1.26.7(desk-env) root@desk-mx6ul-axelulite:~#</pre>
8,221
edits