If you are using Bookworm, it has changed a bit so we now need to create a virtual environment (venv) to install python packages with pip.
See https://www.raspberrypi.com/documentat ... spberry-pi
Like this (with sysytem packages)You can then install things with pip.
Note: Bookworm is the current version - not an "an older image might work better: We installed a bookworm image"
See https://www.raspberrypi.com/documentat ... spberry-pi
Like this (with sysytem packages)
Code:
mkdir my_projectcd my_projectpython -m venv --system-site-packages envsource env/bin/activate
Note: Bookworm is the current version - not an "an older image might work better: We installed a bookworm image"
Statistics: Posted by neilgl — Sat Mar 23, 2024 6:57 pm