From 8d0c962f42aa3096012ec532696647b7061fb930 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 16 Dec 2024 15:57:13 -0800 Subject: [PATCH] copy --- MANIFEST.in | 2 ++ aider/website/_includes/get-started.md | 8 ++++---- aider/website/docs/install.md | 25 +++++++++++++++++++------ 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 9ce82277f..9ab273215 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,7 +9,9 @@ exclude aider/website/HISTORY.md exclude aider/website/docs/benchmarks*.md exclude aider/website/docs/ctags.md exclude aider/website/docs/unified-diffs.md + exclude aider/website/install.ps1 +exclude aider/website/install.sh recursive-exclude aider/website/docs/leaderboards * recursive-exclude aider/website/assets * diff --git a/aider/website/_includes/get-started.md b/aider/website/_includes/get-started.md index 65c666e83..425110d28 100644 --- a/aider/website/_includes/get-started.md +++ b/aider/website/_includes/get-started.md @@ -1,16 +1,16 @@ -You can get started quickly like this, with python 3.8-3.13: +If you already have python 3.8-3.13 installed, you can get started quickly like this: ```bash python -m pip install aider-install aider-install # Change directory into your code base -cd /to/your/git/repo +cd /to/your/project -# Work with Claude 3.5 Sonnet on your repo +# Work with Claude 3.5 Sonnet on your code aider --model sonnet --anthropic-api-key your-key-goes-here -# Work with GPT-4o on your repo +# Work with GPT-4o on your code aider --model gpt-4o --openai-api-key your-key-goes-here ``` diff --git a/aider/website/docs/install.md b/aider/website/docs/install.md index 4789fe799..8333a9303 100644 --- a/aider/website/docs/install.md +++ b/aider/website/docs/install.md @@ -19,6 +19,15 @@ aider-install will automatically install a separate version of python3.12 to use There are some [optional install steps](/docs/install/optional.html) you could consider. See the [usage instructions](https://aider.chat/docs/usage.html) to start coding with aider. +## One-liner for Windows + +This one-liner will install aider, along with python3.12 if needed. +It is based on the [uv installer for Windows](https://docs.astral.sh/uv/getting-started/installation/). + +```powershell +powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex" +``` + ## Install with uv A recommended way to install aider is with uv: @@ -49,12 +58,14 @@ You can use pipx to install aider with python versions 3.9-3.12. Also see the [docs on other methods for installing pipx itself](https://pipx.pypa.io/stable/installation/). +## Other install methods -## Install with pip - -You can directly install aider with pip, but one of the above +You can install aider with the methods described below, but one of the above methods is usually safer. -If you do install with pip, you should consider + +#### Install with pip + +If you install with pip, you should consider using a [virtual environment](https://docs.python.org/3/library/venv.html) to keep aider's dependencies separated. @@ -75,9 +86,11 @@ aider --sonnet --anthropic-api-key sk-xxx... {% include python-m-aider.md %} -## Installing with package managers +#### Installing with package managers -It's best to install aider using aider-install, uv or pipx as described above. +It's best to install aider using one of methods +recommended above: +aider-install, the one-liner, uv or pipx. While aider is available in a number of system package managers, they often install aider with incorrect dependencies.