After upgrading my Debian-based system, I now get the error “this environment is externally managed” every time I run pip install xyz
.
The error suggests using apt install
, creating a virtual environment, or installing with pipx. This didn’t happen before the upgrade, pip install worked fine.
Why is pip suddenly restricted this way, and what’s the safe, recommended way to install packages now?
Also, what are the risks of bypassing this error with --break-system-packages
, and when (if ever) is it okay to use that?