-
Notifications
You must be signed in to change notification settings - Fork 548
Open
Description
OS: Win11
Python: 3.12.10
Trying to install cn-clip with pip, but I always got below error:
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
py-lmdb: Using bundled liblmdb with py-lmdb patches; override with LMDB_FORCE_SYSTEM=1 or LMDB_PURE=1.
Traceback (most recent call last):
File "<string>", line 92, in <module>
ModuleNotFoundError: No module named 'patch_ng'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\projects\image-search\imgsearch\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
File "D:\projects\image-search\imgsearch\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\projects\image-search\imgsearch\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matthew\AppData\Local\Temp\pip-build-env-ecpg2p9t\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matthew\AppData\Local\Temp\pip-build-env-ecpg2p9t\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\matthew\AppData\Local\Temp\pip-build-env-ecpg2p9t\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\matthew\AppData\Local\Temp\pip-build-env-ecpg2p9t\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 94, in <module>
Exception: Building py-lmdb from source on Windows requires the "patch-ng" python module.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'lmdb' when getting requirements to build wheel
This issue related to PaddlePaddle/PaddleOCR#13042 which already fixed with lmdb > 1.6.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels