pip install -> python -m pip install

This commit is contained in:
Paul Gauthier 2024-08-08 13:13:52 -03:00
parent 0e2c7c60fa
commit ce20f2b169
13 changed files with 14 additions and 14 deletions

View file

@ -73,7 +73,7 @@ cd aider
# It's recommended to make a virtual environment # It's recommended to make a virtual environment
# Install the dependencies listed in the `requirements.txt` file: # Install the dependencies listed in the `requirements.txt` file:
pip install -e . python -m pip install -e .
# Run the local version of Aider: # Run the local version of Aider:
python -m aider python -m aider

View file

@ -8,7 +8,7 @@ nav_order: 100
If you are using aider to work on a python project, sometimes your project will require If you are using aider to work on a python project, sometimes your project will require
specific versions of python packages which conflict with the versions that aider specific versions of python packages which conflict with the versions that aider
requires. requires.
If this happens, the `pip install` command may return errors like these: If this happens, the `python -m pip install` command may return errors like these:
``` ```
aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage U.W.V which is incompatible. aider-chat 0.23.0 requires somepackage==X.Y.Z, but you have somepackage U.W.V which is incompatible.

View file

@ -14,7 +14,7 @@ Aider has some built in shortcuts for the most popular Anthropic models and
has been tested and benchmarked to work well with them: has been tested and benchmarked to work well with them:
``` ```
pip install aider-chat python -m pip install aider-chat
export ANTHROPIC_API_KEY=<key> # Mac/Linux export ANTHROPIC_API_KEY=<key> # Mac/Linux
setx ANTHROPIC_API_KEY <key> # Windows, restart shell after setx setx ANTHROPIC_API_KEY <key> # Windows, restart shell after setx

View file

@ -8,7 +8,7 @@ nav_order: 500
Aider can connect to the OpenAI models on Azure. Aider can connect to the OpenAI models on Azure.
``` ```
pip install aider-chat python -m pip install aider-chat
# Mac/Linux: # Mac/Linux:
export AZURE_API_KEY=<key> export AZURE_API_KEY=<key>

View file

@ -13,7 +13,7 @@ You'll need a [Cohere API key](https://dashboard.cohere.com/welcome/login).
To use **Command-R+**: To use **Command-R+**:
``` ```
pip install aider-chat python -m pip install aider-chat
export COHERE_API_KEY=<key> # Mac/Linux export COHERE_API_KEY=<key> # Mac/Linux
setx COHERE_API_KEY <key> # Windows, restart shell after setx setx COHERE_API_KEY <key> # Windows, restart shell after setx

View file

@ -9,7 +9,7 @@ Aider can connect to the DeepSeek.com API.
The DeepSeek Coder V2 model gets the top score on aider's code editing benchmark. The DeepSeek Coder V2 model gets the top score on aider's code editing benchmark.
``` ```
pip install aider-chat python -m pip install aider-chat
export DEEPSEEK_API_KEY=<key> # Mac/Linux export DEEPSEEK_API_KEY=<key> # Mac/Linux
setx DEEPSEEK_API_KEY <key> # Windows, restart shell after setx setx DEEPSEEK_API_KEY <key> # Windows, restart shell after setx

View file

@ -12,7 +12,7 @@ with code editing capability that's comparable to GPT-3.5.
You'll need a [Gemini API key](https://aistudio.google.com/app/u/2/apikey). You'll need a [Gemini API key](https://aistudio.google.com/app/u/2/apikey).
``` ```
pip install aider-chat python -m pip install aider-chat
export GEMINI_API_KEY=<key> # Mac/Linux export GEMINI_API_KEY=<key> # Mac/Linux
setx GEMINI_API_KEY <key> # Windows, restart shell after setx setx GEMINI_API_KEY <key> # Windows, restart shell after setx

View file

@ -13,7 +13,7 @@ You'll need a [Groq API key](https://console.groq.com/keys).
To use **Llama3 70B**: To use **Llama3 70B**:
``` ```
pip install aider-chat python -m pip install aider-chat
export GROQ_API_KEY=<key> # Mac/Linux export GROQ_API_KEY=<key> # Mac/Linux
setx GROQ_API_KEY <key> # Windows, restart shell after setx setx GROQ_API_KEY <key> # Windows, restart shell after setx

View file

@ -15,7 +15,7 @@ ollama pull <model>
ollama serve ollama serve
# In another terminal window... # In another terminal window...
pip install aider-chat python -m pip install aider-chat
export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux
setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx

View file

@ -8,7 +8,7 @@ nav_order: 500
Aider can connect to any LLM which is accessible via an OpenAI compatible API endpoint. Aider can connect to any LLM which is accessible via an OpenAI compatible API endpoint.
``` ```
pip install aider-chat python -m pip install aider-chat
# Mac/Linux: # Mac/Linux:
export OPENAI_API_BASE=<endpoint> export OPENAI_API_BASE=<endpoint>

View file

@ -14,7 +14,7 @@ Aider has some built in shortcuts for the most popular OpenAI models and
has been tested and benchmarked to work well with them: has been tested and benchmarked to work well with them:
``` ```
pip install aider-chat python -m pip install aider-chat
export OPENAI_API_KEY=<key> # Mac/Linux export OPENAI_API_KEY=<key> # Mac/Linux
setx OPENAI_API_KEY <key> # Windows, restart shell after setx setx OPENAI_API_KEY <key> # Windows, restart shell after setx

View file

@ -9,7 +9,7 @@ Aider can connect to [models provided by OpenRouter](https://openrouter.ai/model
You'll need an [OpenRouter API key](https://openrouter.ai/keys). You'll need an [OpenRouter API key](https://openrouter.ai/keys).
``` ```
pip install aider-chat python -m pip install aider-chat
export OPENROUTER_API_KEY=<key> # Mac/Linux export OPENROUTER_API_KEY=<key> # Mac/Linux
setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx
@ -24,7 +24,7 @@ aider --models openrouter/
In particular, Llama3 70B works well with aider, at low cost: In particular, Llama3 70B works well with aider, at low cost:
``` ```
pip install aider-chat python -m pip install aider-chat
export OPENROUTER_API_KEY=<key> # Mac/Linux export OPENROUTER_API_KEY=<key> # Mac/Linux
setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx

View file

@ -48,7 +48,7 @@ It also supports [connecting to almost any LLM](https://aider.chat/docs/llms.htm
Use the `--browser` switch to launch the browser version of aider: Use the `--browser` switch to launch the browser version of aider:
``` ```
pip install aider-chat python -m pip install aider-chat
export OPENAI_API_KEY=<key> # Mac/Linux export OPENAI_API_KEY=<key> # Mac/Linux
setx OPENAI_API_KEY <key> # Windows, restart shell after setx setx OPENAI_API_KEY <key> # Windows, restart shell after setx