Error AtlasError Documentation and Resolution

pip refused to modify an externally managed Python environment

error: externally-managed-environment

pip refused to install into the current Python environment because the environment is externally managed by the operating system or distributor tooling.

externally-managed-environmentpackage managers
error: externally-managed-environment
  • The current Python installation is marked as externally managed.
  • pip is being used directly against a system-managed interpreter.
  • The host platform expects packages to be installed through its own package-management flow.
  1. Use a virtual environment for project-specific package installs.
  2. Use a Python installation that is intended for user-managed packages.
  3. Only use break-system-packages style overrides if you fully understand the platform risk.
pip documentation: pip uninstall
pip externally-managed-environment: causes and fixes | Error Atlas