From 862968ed20d173289f66e07c1dc0700c06ca63e7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 26 Sep 2024 11:50:25 -0700 Subject: [PATCH] copy --- aider/website/docs/install/install.md | 4 ++-- aider/website/docs/troubleshooting/imports.md | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/aider/website/docs/install/install.md b/aider/website/docs/install/install.md index 3b7fa0f11..e693df72e 100644 --- a/aider/website/docs/install/install.md +++ b/aider/website/docs/install/install.md @@ -31,7 +31,7 @@ To work with Anthropic's models like Claude 3.5 Sonnet you need a paid ``` # Install aider -python -m pip install -U aider-chat +python -m pip install -U --ignore-installed aider-chat # To work with GPT-4o: $ aider --4o --openai-api-key sk-xxx... @@ -44,7 +44,7 @@ $ aider --sonnet --anthropic-api-key sk-xxx... ``` # Install aider -python -m pip install -U aider-chat +python -m pip install -U --ignore-installed aider-chat # To work with GPT-4o: $ aider --4o --openai-api-key sk-xxx... diff --git a/aider/website/docs/troubleshooting/imports.md b/aider/website/docs/troubleshooting/imports.md index 59c97f5fa..182f107f5 100644 --- a/aider/website/docs/troubleshooting/imports.md +++ b/aider/website/docs/troubleshooting/imports.md @@ -24,11 +24,20 @@ with the correct set of dependencies. Package managers often install aider with the wrong dependencies, leading to import errors and other problems. + The recommended way to install aider is with -[pip](/docs/install/install.html) -or -[pipx](/docs/install/pipx.html). +[pip](/docs/install/install.html). +Be sure to use the `--ignore-installed` switch so that the correct +versions of dependencies will be installed. + +``` +python -m pip install -U --ignore-installed aider-chat +``` + +A very safe way is to +[install aider using pipx](/docs/install/pipx.html), +which will ensure it is installed in a stand alone virtual environment. ## Dependency versions matter