Skip to content

scikit-learn is not installed with llm install -U llm-consortium #16

@avoidik

Description

@avoidik

As a result:

$ llm keys
Traceback (most recent call last):
  File "/opt/homebrew/bin/llm", line 3, in <module>
    from llm.cli import cli
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm/cli.py", line 3761, in <module>
    load_plugins()
    ~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm/plugins.py", line 28, in load_plugins
    pm.load_setuptools_entrypoints("llm")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/pluggy/_manager.py", line 416, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm_consortium/__init__.py", line 18, in <module>
    from .orchestrator import (
    ...<3 lines>...
    )
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm_consortium/orchestrator.py", line 12, in <module>
    from .strategies.factory import create_strategy
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm_consortium/strategies/__init__.py", line 4, in <module>
    from .factory import create_strategy
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm_consortium/strategies/factory.py", line 5, in <module>
    from .semantic import SemanticClusteringStrategy
  File "/opt/homebrew/Cellar/llm/0.30/libexec/lib/python3.14/site-packages/llm_consortium/strategies/semantic.py", line 6, in <module>
    from sklearn.cluster import DBSCAN
ModuleNotFoundError: No module named 'sklearn'

quickfix is:

/opt/homebrew/Cellar/llm/0.30/libexec/bin/python3 -m pip install scikit-learn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions