EnvCommandError error: externally-managed-environment

How to install packages? When i install, have ERROR

The following error occurred when trying to handle this error:


  Command ['pip', 'uninstall', 'pydantic', '-y'] errored with the following return code 1
  error: externally-managed-environment
  × This environment is externally managed
  ╰─> This command has been disabled as it tries to modify the immutable
      `/nix/store` filesystem.
      To use Python with Nix and nixpkgs, have a look at the online documentation:
  note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
  hint: See PEP 668 for the detailed specification.

  at /nix/store/fcbymdrl3n3ksr6z2zbsmsb2vnixyz39-poetry-in-venv/env/lib/python3.10/site-packages/poetry/utils/env.py:1523 in _run
      1519│                 output = ""
      1520│             else:
      1521│                 output = subprocess.check_output(cmd, stderr=stderr, env=env, **kwargs)
      1522│         except CalledProcessError as e:
    → 1523│             raise EnvCommandError(e, input=input_)
      1525│         return decode(output)
      1527│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

exit status 1

Replit Profile: https://replit.com/@kofemol