help Installing Phidgets Lib on rPi4 OS 64-bit

Supporting Linux and other Unixes
Bvis222
Phidgetsian
Posts: 6
Joined: Sun Feb 17, 2013 8:45 pm

help Installing Phidgets Lib on rPi4 OS 64-bit

Post by Bvis222 »

Tried many different ways...my python script just keeps giving me this message...I have this script working on os 32-bit...

Traceback (most recent call last):
File "/home/test-64/Documents/slitPi.py", line 13, in <module>
from Phidget22.Phidget import *
ModuleNotFoundError: No module named 'Phidget22'

Thanks for any help
Bvis222
Phidgetsian
Posts: 6
Joined: Sun Feb 17, 2013 8:45 pm

Re: help Installing Phidgets Lib on rPi4 OS 64-bit

Post by Bvis222 »

I figured it out...

you need to install the package by breaking system-packages

pip install phidget22 --break-system-packages

now it all works...
GerritSchuster
Fresh meat
Posts: 1
Joined: Wed Sep 02, 2026 9:23 am

Re: help Installing Phidgets Lib on rPi4 OS 64-bit

Post by GerritSchuster »

Bvis222 wrote: I figured it out... you need to install the package by breaking system-packages pip install phidget22 --break-system-packages now it all works...
Glad you got it working, and thanks for posting the fix — that’ll help the next person hitting the same issue on 64-bit Raspberry Pi OS.

One small caution: `--break-system-packages` bypasses Debian/Raspberry Pi OS’s Python package protections, so it’s OK if you understand the tradeoff, but a virtual environment is usually the cleaner route:

`python3 -m venv venv`
`source venv/bin/activate`
`pip install phidget22`

Then run your script from that environment. But if this Pi is dedicated to the project and it’s working reliably now, your solution is a practical one.