`llm` upgrade pip
The llm
package uses a plugin architecture to support numerous different language model API providers and frameworks.
Per the documentation, these plugins are installed using a version of pip
, the popular Python package manager
Use the llm install command (a thin wrapper around pip install) to install plugins in the correct environment:
llm install llm-gpt4all
Because this approach makes use of pip
occasionally we run into familiar issues like pip
being out of date and complaining about it on every use
❯ llm install llm-ollamaCollecting llm-ollama...Successfully installed llm-ollama-0.8.2 ollama-0.4.7
[notice] A new release of pip is available: 24.3.1 -> 25.0[notice] To update, run: /opt/homebrew/Cellar/llm/0.19.1/libexec/bin/python -m pip install --upgrade pip
The instance of pip
that needs to be updated here is the pip
being used within llm
.
I couldn’t find explicit instructions on how to address this issue upon some cursory searches, but the solution is pretty intuitive - props to Simon for a nice API design.
To update pip
within llm
, run
llm install --upgrade pip
The upgrade notice should disappear if all goes well.
Recommended
Calling Deepseek with `llm` using OpenAI Compatible APIs
Deepseek V3 was recently released: a cheap, reliable, supposedly GPT-4 class model.
Running `uv` with Environment Variables
The .env file and the python-dotenv package are popular conventions in Python for managing environment variables. I often forget or pause when trying...
Pip Latest Version Checking
I run a lot of different version of various languages and tools across my system. Nix and direnv help make this possible to manage...