Open noamross opened 2 weeks ago
You are right, llm
installs plugins with pip into the same environment it runs in. uv
does not know about these dependencies and will remove them when upgrading the llm
package.
A workaround is to install llm plugins as additional Python dependencies with uv tool install --extra <llm-plugin> llm
, as documented here.
One caveat though, you cannot add additional dependencies this way. You always have to provide the full list of extra dependencies with multiple --extra
options.
EDIT: fix uv tool install command
This may not be an
llm
issue, but could have to do with the interaction of the plugin mechanism with python packaging tooling.I have
llm
installed (on MacOS) viauv tool install llm
. When I update llm withuv tool upgrade llm
, it forgets about all of its installed plugins:Now I update:
Now, no more plugins
Having saved the JSON of plugins, I can re-install them, and it appears that everything is installed from the cache. Is this because
llm install
is usingpip
or something similar, anduv
handles things differently?