Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1579

Python • Trixie Upgrade and lgpio

$
0
0
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).

Code:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython3 get-pip.py --force-reinstall
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.

Code:

apt install swig
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.

Statistics: Posted by david3 — Fri Aug 15, 2025 3:53 am



Viewing all articles
Browse latest Browse all 1579

Trending Articles