Skip to content

Error installing llm-mlx on Python 3.13 due to missing sentencepiece wheel #7

@macdrifter

Description

@macdrifter

On macOS 15.3.1 with M4
LLM version 0.21 (updated from 0.20)
Installed LLM as a tool using UV

I uninstalled LLM, created a new uv tool and tried installing with several other plugins. That all works fine. But llm-mlx fails consistently.

Here's the beginning of the trace that seems to point to an issue with sentencepiece installation. I'd be happy to troubleshoot further if you have a suggestion.

Resolved 54 packages in 344ms
  × Failed to build `sentencepiece==0.2.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-11.0-arm64-cpython-313/sentencepiece
      copying src/sentencepiece/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/sentencepiece
      copying src/sentencepiece/_version.py -> build/lib.macosx-11.0-arm64-cpython-313/sentencepiece
      copying src/sentencepiece/sentencepiece_model_pb2.py ->
      build/lib.macosx-11.0-arm64-cpython-313/sentencepiece
      copying src/sentencepiece/sentencepiece_pb2.py -> build/lib.macosx-11.0-arm64-cpython-313/sentencepiece
      running build_ext

      [stderr]
      /Users/weatherh/.cache/uv/builds-v0/.tmpLIQeFV/lib/python3.13/site-packages/setuptools/_distutils/dist.py:270:
      UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      /bin/sh: pkg-config: command not found
      ./build_bundled.sh: line 21: cmake: command not found
      ./build_bundled.sh: line 22: nproc: command not found
      ./build_bundled.sh: line 22: cmake: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions