Technical requirements
To follow along with the examples, make sure you have the following software installed on your Linux host system:
- Python: Python 3 interpreter and standard library
pip
: Package installer for Python 3venv
: Python module for creating and managing lightweight virtual environments- Miniconda: Minimal installer for the
conda
package and virtual environment manager
I recommend using Ubuntu 24.04 LTS or later for this chapter. Even though Ubuntu 24.04 LTS runs on the Raspberry Pi 4, I still prefer to develop on an x86-64 desktop PC or laptop. Ubuntu also comes with Python 3 and pip
already installed since Python is used extensively throughout the system. Do not uninstall python3
or you will render Ubuntu unusable. To install venv
on Ubuntu, enter the following:
$ sudo apt install python3-venv
IMPORTANT NOTE
Do not install Miniconda until you get to the section on conda
because it interferes with the earlier...