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.

Page revision history

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

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 3 changed one line
See also: [CircuitPython] and [MicroPython] and [Upgrading Python|UpgradingPython]
See also: [CircuitPython] and [MicroPython]
At line 5 removed one line
!! A Python Library Devoted to Robotics
At line 7 changed one line
This is a Python code collection of robotics algorithms.
!! Upgrading to a Newer Version of Python
At line 9 changed one line
Features:
To upgrade to a newer version of Python, e.g., 3.8.5:
{{{
sudo apt update
At line 11 changed 3 lines
# Easy to read for understanding each algorithm's basic idea.
# Widely used and practical algorithms are selected.
# Minimum dependency.
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
At line 15 changed one line
See: __[Python Robotics|https://github.com/AtsushiSakai/PythonRobotics]__ by Atsushi Sakai
wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
At line 16 added 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 added 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 removed one line
!! How to Have Pip3 Install a Module to a Specific Python Version
At line 21 changed 4 lines
'nuff said (in the title):
{{{
python3.8 -m pip install foo
}}}
%%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.
At line 34 added 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 removed 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 removed one line
At line 45 removed one line
* [PyRobot|https://pyrobot.org/], an Open Source Robotics Research Platform
At line 53 changed 8 lines
* [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/]