After upgrading to Trixie, I had to rebuild my python virtual environments for my various projects.
First, to get pip working again, after activating the venv (source bin/activate).
After pip was reinstalled, I deleted the downloaded get-pip.py.
Reinstalling everything, I couldn't get lgpio to pip install. First, it complained about missing swig, and "pip install swig" didn't help.
So I installed it system-wide.
But even then, different errors trying to "pip install lgpio"
Finally, I installed lgpio manually following the instructions here:
https://abyz.me.uk/lg/download.html
Only then was I able to get everything to work. Just sharing this in case anyone else runs into the same problems upgrading to Trixie.
First, to get pip working again, after activating the venv (source bin/activate).
Code:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython3 get-pip.py --force-reinstallReinstalling everything, I couldn't get lgpio to pip install. First, it complained about missing swig, and "pip install swig" didn't help.
So I installed it system-wide.
Code:
apt install swigFinally, I installed lgpio manually following the instructions here:
https://abyz.me.uk/lg/download.html
Only then was I able to get everything to work. Just sharing this in case anyone else runs into the same problems upgrading to Trixie.
Statistics: Posted by david3 — Fri Aug 15, 2025 3:53 am