Hello to all:
I have a still working Raspberry Pi Model B Rev 1, running Raspbian GNU/Linux 12 (bookworm), Kernel: Linux 6.12.34+rpt-rpi-v6
My goal is control my DSO using the https://pyvisa.readthedocs.io/projects/ ... ation.html library, however, I'm getting this error while trying to install:Running with sudo also trows the same error.Code:
admin@raspberrypi~/Siglent_DSO/> pip install pyvisa-pyerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. For more information visit http://rptl.io/venvnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.hint: See PEP 668 for the detailed specification.
Thanks you all in advance.
The message you cite contains THREE suggestions for how this might be resolved.
And you have been supplied with a link to supporting information from Raspbery Pi themselves, which leads to Bookworm changes to pip installation - https://www.raspberrypi.com/documentati ... spberry-pi
The first option, using the apt package manager, looks as though it might be supported.
Code:
david@rp54bw64full0512:~/Support/yv1hx $ sudo apt install python3-pyvisa-py -sReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following additional packages will be installed: python3-pyvisa python3-usbSuggested packages: libvisa0The following NEW packages will be installed: python3-pyvisa python3-pyvisa-py python3-usb0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.Inst python3-pyvisa (1.11.3-3 Debian:12.11/oldstable [all])Inst python3-pyvisa-py (0.5.1-3 Debian:12.11/oldstable [all])Inst python3-usb (1.2.1-2 Debian:12.11/oldstable [all])Conf python3-pyvisa (1.11.3-3 Debian:12.11/oldstable [all])Conf python3-pyvisa-py (0.5.1-3 Debian:12.11/oldstable [all])Conf python3-usb (1.2.1-2 Debian:12.11/oldstable [all])david@rp54bw64full0512:~/Support/yv1hx $ (Note that this example only performed a Simulation or Dry Run. You will need to modify the apt command accordingly.)
Statistics: Posted by B.Goode — Sat Sep 06, 2025 8:16 pm