If you are having trouble installing our Python packages when using the new Bookworm distribution of the Raspberry Pi OS you should use these instructions to setup a virtual environment:
https://www.raspberrypi.com/documentati … spberry-pi
- Create a virtual environment using the –system-site-packages flag:
python3 -m venv <name of virtual environment> --system-site-packages
- Enter the virtual environment:
source ./<name of virtual environment>/bin/activate
3: Then you can install any of our Qwiic Python packages, using pip3
pip3 install sparkfun-qwiic
To exit the virtual environment, you will just need to run the following command:
deactivate