This page (revision-22) was last changed on 2022-04-19 01:44 by Murray Altheim

This page was created on 2019-12-21 22:01 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Version Date Modified Size Author Changes ... Change note
22 2022-04-19 01:44 6 KB Murray Altheim to previous
21 2021-11-29 10:49 6 KB Murray Altheim to previous | to last

Difference between version and

At line 3 changed one line
See also: [CircuitPython] and [MicroPython]
See also: [CircuitPython] and [MicroPython] and [Upgrading Python|UpgradingPython]
At line 5 added one line
!! A Python Library Devoted to Robotics
At line 6 changed one line
!! Upgrading to a Newer Version of Python
This is a Python code collection of robotics algorithms.
At line 8 changed 3 lines
To upgrade to a newer version of Python, e.g., 3.8.5:
{{{
sudo apt update
Features:
At line 12 changed one line
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
# Easy to read for understanding each algorithm's basic idea.
# Widely used and practical algorithms are selected.
# Minimum dependency.
At line 14 changed one line
wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
See: __[Python Robotics|https://github.com/AtsushiSakai/PythonRobotics]__ by Atsushi Sakai
At line 16 removed 11 lines
tar zxf Python-3.8.5.tgz
cd Python-3.8.5
./configure --enable-optimizations
make -j4
sudo make install
}}}
or
{{{
sudo make altinstall
}}}
if you don't want the newly-installed version to be the default. This is an absolute requirement on Ubuntu (for example), as if you replace the default version of Python you __will__ disable/break your OS (e.g., see [How to Install Python 3.8 on Ubuntu|https://tech.serhatteker.com/post/2019-12/how-to-install-python38-on-ubuntu/]). On a Raspberry Pi this isn't so far as I have seen a problem.
At line 28 removed one line
In the above directions, replace "3.8.5" above with whatever version you want to install. You can browse the directory of available downloads at: [https://www.python.org/ftp/python]
At line 19 added one line
!! How to Have Pip3 Install a Module to a Specific Python Version
At line 31 changed 2 lines
%%information
You must be patient. On a Pi 4, this can take a long time; on a 3 B+ a very long time. On a Pi Zero basically overnight.
'nuff said (in the title):
{{{
python3.8 -m pip install foo
}}}
At line 34 removed 2 lines
If you're logging into your Pi remotely to do the upgrade, it's interesting to run a second ssh session with {{top}} or {{htop}} running, to watch your Pi's processors working very hard.
%%
At line 34 added one line
* Support for various Pimoroni Breakout Garden boards as [MicroPython modules|https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/modules]
At line 36 added one line
At line 45 added one line
* [PyRobot|https://pyrobot.org/], an Open Source Robotics Research Platform
At line 60 changed one line
* [asyncio implementation on MicroPython|https://docs.micropython.org/en/latest/library/uasyncio.html] (uasyncio)
* [Module Support Matrix - Which Modules Are Available on Which Boards|https://circuitpython.readthedocs.io/en/latest/shared-bindings/support_matrix.html?filter=i2cperipheral] (by customising the URL you can change the highlighting)
* [Pybotics|https://pypi.org/project/pybotics/], The Python Toolbox for Robotics
* [Robot Framework|https://robotframework.org/], a generic open source automation framework.
It can be used for test automation and robotic process automation (RPA).
* [Python 101: Redirecting stdout|https://www.blog.pythonlibrary.org/2016/06/16/python-101-redirecting-stdout/]