https://unix.stackexchange.com/questions/450008/pip-vs-package-manager-for-handling-python-packages
https://unix.stackexchange.com/questions/734792/difference-between-installing-a-package-with-apt-and-pip
If you need to install an executable python program, use pipx
it will create special environment for the python program so it won't break anything else in the system but it only works on packages (pipx install some-package
) that have entry scripts (so can be called directly, libraries usually do not have that as you use them from other python program).
In short that error you get that tells you to use zypper is there for an important reason.
pipx won't work for that, it's a library.
If you are working on your own project/script, you should use virtualenv for development and install all required libraries there.
If you need it because some system installed application or part of your system does not work without it then... you are in bad place - pip is python package manager primarily used for general python development (installing depending packages, and in theory also for packaging python projects) but it should never be used as system wide package manager - you will break stuff (especially when used with sudo).