global python library installation where pipx is not an option

67 Views Asked by At

I understand as of PEP-0668 we're supposed to be installing python executables via pipx. What about packages such as a mopidy plugin mopidy-spotify? It doesn't install via pipx, and as mopidy service is ran as mopidy user it should be installed globally.

Is sudo python3 -m pip install Mopidy-Spotify --break-system-packages appropriate in such situation?

Edit: let's assume mopidy itself was installed via OS package manager, eg from apt.


See also: pip install -r requirements.txt is failing: "This environment is externally managed"

0

There are 0 best solutions below