Issues with SparkFun Python packages via Bookworm distribution? Check here!

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

  1. Create a virtual environment using the –system-site-packages flag:
python3 -m venv <name of virtual environment> --system-site-packages
  1. 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