Debian 12 pip pipx install error
Posted: June 11th, 2023, 9:44 am
First, I wasn't sure which section to put this in. It's not a problem with the Debian package but IS a problem with Debian 12. So mods, if this is the wrong spot, feel free to move it. Sorry 
Been using SAB on my Debian 11 box for a few years with zero problems. I was able to follow all the instructions just fine and it has been humming along.
Before I upgrade my main server to Debian 12, I installed it on a test system and am installing all the programs I use (Plex, Emby, Sonarr, Radarr and SAB) to make sure I won't break anything.
Everything was going perfectly until I got to SAB
I know that Debian made some changes to the pip stuff (pipx now) and when trying to install SAB, I ran into this problem:
While I -have- been using Linux for a few years, I'm by no means an expert and can't figure out how to proceed. Should I use '--break-system-packages' or the fix right in front of my eyes?
Just want to go the best route to ensure SAB works 100%. I understand what the Debian devs are saying about why they changed things...... isolating pip stuff so it doesn't break some critical python package....... but in the years I've been using Debian 10/11, the "old way" with pip never broke anything. 

Been using SAB on my Debian 11 box for a few years with zero problems. I was able to follow all the instructions just fine and it has been humming along.
Before I upgrade my main server to Debian 12, I installed it on a test system and am installing all the programs I use (Plex, Emby, Sonarr, Radarr and SAB) to make sure I won't break anything.
Everything was going perfectly until I got to SAB

Code: Select all
pip install --upgrade -r requirements.txt
error: 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.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: 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.
Code: Select all
python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
