Skip to content

win环境pip安装:ERROR: Failed to build installable wheels for some pyproject.toml based projects (chonkie) #111

@yinglangde

Description

@yinglangde

python版本:
``Python 3.13.4

pip install MemoryOS

错误信息:
Building wheels for collected packages: chonkie
Building wheel for chonkie (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for chonkie (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [159 lines of output]
C:\Users\admin\AppData\Local\Temp\pip-build-env-cwajhm2m\overlay\Lib\site-packages\setuptools\config\pyprojecttoml.py:72: _ExperimentalConfiguration: [tool.setuptools.ext-modules] in pyproject.toml is still experimental and likely to change in future releases.
config = read_configuration(filepath, True, ignore_option_errors, dist)
C:\Users\admin\AppData\Local\Temp\pip-build-env-cwajhm2m\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!

          ********************************************************************************
          Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

          By 2026-Feb-18, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    corresp(dist, value, root_dir)
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-313\chonkie
  copying src\chonkie\tokenizer.py -> build\lib.win-amd64-cpython-313\chonkie
  copying src\chonkie\__init__.py -> build\lib.win-amd64-cpython-313\chonkie
  creating build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\base.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\code.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\late.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\neural.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\recursive.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\sdpm.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\semantic.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\sentence.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\slumber.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\token.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  copying src\chonkie\chunker\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\chunker
  creating build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\base.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\code.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\document.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\late.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\recursive.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\semantic.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\sentence.py -> build\lib.win-amd64-cpython-313\chonkie\types
  copying src\chonkie\types\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\types
  creating build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\auto.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\base.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\cohere.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\gemini.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\jina.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\model2vec.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\openai.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\registry.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\sentence_transformer.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\voyageai.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  copying src\chonkie\embeddings\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\embeddings
  creating build\lib.win-amd64-cpython-313\chonkie\utils
  copying src\chonkie\utils\hub.py -> build\lib.win-amd64-cpython-313\chonkie\utils
  copying src\chonkie\utils\viz.py -> build\lib.win-amd64-cpython-313\chonkie\utils
  copying src\chonkie\utils\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\utils
  creating build\lib.win-amd64-cpython-313\chonkie\refinery
  copying src\chonkie\refinery\base.py -> build\lib.win-amd64-cpython-313\chonkie\refinery
  copying src\chonkie\refinery\embedding.py -> build\lib.win-amd64-cpython-313\chonkie\refinery
  copying src\chonkie\refinery\overlap.py -> build\lib.win-amd64-cpython-313\chonkie\refinery
  copying src\chonkie\refinery\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\refinery
  creating build\lib.win-amd64-cpython-313\chonkie\genie
  copying src\chonkie\genie\base.py -> build\lib.win-amd64-cpython-313\chonkie\genie
  copying src\chonkie\genie\gemini.py -> build\lib.win-amd64-cpython-313\chonkie\genie
  copying src\chonkie\genie\openai.py -> build\lib.win-amd64-cpython-313\chonkie\genie
  copying src\chonkie\genie\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\genie
  creating build\lib.win-amd64-cpython-313\chonkie\friends
  copying src\chonkie\friends\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\friends
  creating build\lib.win-amd64-cpython-313\chonkie\friends\porters
  copying src\chonkie\friends\porters\base.py -> build\lib.win-amd64-cpython-313\chonkie\friends\porters
  copying src\chonkie\friends\porters\json.py -> build\lib.win-amd64-cpython-313\chonkie\friends\porters
  copying src\chonkie\friends\porters\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\friends\porters
  creating build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\base.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\chroma.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\pgvector.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\qdrant.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\turbopuffer.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\utils.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  copying src\chonkie\friends\handshakes\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\friends\handshakes
  creating build\lib.win-amd64-cpython-313\chonkie\cloud
  copying src\chonkie\cloud\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\cloud
  creating build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\base.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\code.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\late.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\neural.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\recursive.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\sdpm.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\semantic.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\sentence.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\slumber.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\token.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  copying src\chonkie\cloud\chunker\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\cloud\chunker
  creating build\lib.win-amd64-cpython-313\chonkie\experimental
  copying src\chonkie\experimental\code.py -> build\lib.win-amd64-cpython-313\chonkie\experimental
  copying src\chonkie\experimental\code_registry.py -> build\lib.win-amd64-cpython-313\chonkie\experimental
  copying src\chonkie\experimental\__init__.py -> build\lib.win-amd64-cpython-313\chonkie\experimental
  running egg_info
  writing src\chonkie.egg-info\PKG-INFO
  writing dependency_links to src\chonkie.egg-info\dependency_links.txt
  writing requirements to src\chonkie.egg-info\requires.txt
  writing top-level names to src\chonkie.egg-info\top_level.txt
  reading manifest file 'src\chonkie.egg-info\SOURCES.txt'
  adding license file 'LICENSE'
  writing manifest file 'src\chonkie.egg-info\SOURCES.txt'
  C:\Users\admin\AppData\Local\Temp\pip-build-env-cwajhm2m\overlay\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'chonkie.chunker.c_extensions' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'chonkie.chunker.c_extensions' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'chonkie.chunker.c_extensions' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'chonkie.chunker.c_extensions' to be distributed and are
          already explicitly excluding 'chonkie.chunker.c_extensions' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  copying src\chonkie\py.typed -> build\lib.win-amd64-cpython-313\chonkie
  creating build\lib.win-amd64-cpython-313\chonkie\chunker\c_extensions
  copying src\chonkie\chunker\c_extensions\merge.c -> build\lib.win-amd64-cpython-313\chonkie\chunker\c_extensions
  copying src\chonkie\chunker\c_extensions\merge.pyx -> build\lib.win-amd64-cpython-313\chonkie\chunker\c_extensions
  copying src\chonkie\chunker\c_extensions\split.c -> build\lib.win-amd64-cpython-313\chonkie\chunker\c_extensions
  copying src\chonkie\chunker\c_extensions\split.pyx -> build\lib.win-amd64-cpython-313\chonkie\chunker\c_extensions
  running build_ext
  building 'chonkie.chunker.c_extensions.split' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for chonkie
Failed to build chonkie
ERROR: Failed to build installable wheels for some pyproject.toml based projects (chonkie)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwork in progressA matter currently being resolved | 一个正在处理中的事项

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions