Installing via python: pip3 externally managed environment

That’s not a Qubes issue. Python uses PEP 668 on Debian, which gives the error you see.

If you still want to do things the old way, you can move the following file:

sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED ~/

Or use this option when installing a package: --break-system-packages

1 Like