APT (Advanced Packaging Tool) is a software package management tool used to install, upgrade and manage software packages on Debian and Ubuntu systems.
The packages for this installation method are tested, often precompiled so they install faster, and are designed for Raspberry Pi OS.
sudo apt install python3-build-hat
To use APT to install Python packages, first you need to ensure that Python and pip tools are installed:
(The system has these two tools installed by default. If they are not installed, you can enter the following command to install them)
xxxxxxxxxx
sudo apt install python3-pip
Use pip to download and install specified Python packages from the Python package index.