Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Aider error

Aider: aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage...

Error message
aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage U.W.V which is incompatible.

Status: WorkaroundLast verified 3 documented fixes2 sources

What it means

Aider is installed with the wrong versions of its dependencies. This shows up as pip conflict messages like the one above, or as ImportErrors when aider runs. Aider pins its dependencies and is tested with those exact versions.

Causes

  • Installing aider into the same Python environment as a project that needs conflicting package versions (official docs).
  • Package managers like Homebrew, AUR or ports installing aider with the wrong dependencies (official docs).
  • Upgrading or downgrading pinned packages, especially litellm, which changes versions often (official docs).

How to fix it

  1. Fix 1.

    Install aider into its own Python environment with aider-install, uv or pipx.

    Terminal
    curl -LsSf https://aider.chat/install.sh | sh
  2. Fix 2.

    Or install with uv.

    Snippet
    uv tool install --force --python python3.12 --with pip aider-chat@latest
  3. Fix 3.

    If you install with pip directly, avoid changing the packages pinned at the end of aider's requirements.in, and be careful about upgrading litellm.

More Aider errors

All 17 Aider errors

FAQ

What does "aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage..." mean in Aider?

Aider is installed with the wrong versions of its dependencies. This shows up as pip conflict messages like the one above, or as ImportErrors when aider runs. Aider pins its dependencies and is tested with those exact versions.

How do I fix "aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage..."?

There are 3 documented fixes. Start with the first: Install aider into its own Python environment with aider-install, uv or pipx.

Is this Aider error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it. Affected versions: All versions.

Sources

Last verified against 2 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.