This commit is contained in:
Paul Gauthier 2024-09-27 14:28:53 -07:00
parent 114fb2a889
commit 927d03cc37
2 changed files with 11 additions and 4 deletions

View file

@ -31,7 +31,7 @@ To work with Anthropic's models like Claude 3.5 Sonnet you need a paid
``` ```
# Install aider # Install aider
python -m pip install -U --ignore-installed aider-chat python -m pip install -U --upgrade-strategy only-if-needed aider-chat
# To work with GPT-4o: # To work with GPT-4o:
$ aider --4o --openai-api-key sk-xxx... $ aider --4o --openai-api-key sk-xxx...
@ -44,7 +44,7 @@ $ aider --sonnet --anthropic-api-key sk-xxx...
``` ```
# Install aider # Install aider
python -m pip install -U --ignore-installed aider-chat python -m pip install -U --upgrade-strategy only-if-needed aider-chat
# To work with GPT-4o: # To work with GPT-4o:
$ aider --4o --openai-api-key sk-xxx... $ aider --4o --openai-api-key sk-xxx...

View file

@ -20,6 +20,13 @@ If you are having dependency problems you should consider
This will ensure that aider is installed in its own python environment, This will ensure that aider is installed in its own python environment,
with the correct set of dependencies. with the correct set of dependencies.
Try re-installing cleanly:
```
pipx uninstall aider-chat
pipx install aider-chat
```
## Package managers like Homebrew, AUR, ports ## Package managers like Homebrew, AUR, ports
Package managers often install aider with the wrong dependencies, leading Package managers often install aider with the wrong dependencies, leading
@ -28,11 +35,11 @@ to import errors and other problems.
The recommended way to The recommended way to
install aider is with install aider is with
[pip](/docs/install/install.html). [pip](/docs/install/install.html).
Be sure to use the `--ignore-installed` switch so that the correct Be sure to use the `--upgrade-strategy only-if-needed` switch so that the correct
versions of dependencies will be installed. versions of dependencies will be installed.
``` ```
python -m pip install -U --ignore-installed aider-chat python -m pip install -U --upgrade-strategy only-if-needed aider-chat
``` ```
A very safe way is to A very safe way is to