The error 'externally-managed-environment' indicates that the Python environment is controlled by the operating system's package manager, not the user.
To install Python packages in 2025, creating virtual environments using tools like UV is recommended to have full control over installations without interfering with the system Python.
The transition to PEP 668 for installing Python packages globally with pip on Linux helps in preventing subtle bugs or critical system issues caused by reckless installations.
Using the --break-system-packages flag with pip allows users to override the system-managed Python install restrictions, but it comes with risks of breaking critical system components.