StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
444 stars 26 forks source link

ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects #34

Open lavenilla opened 2 months ago

lavenilla commented 2 months ago

I'm facing an issue where the wheel for llama-cpp-python fails to build while installing requirements, Has anyone encountered this issue before and managed to resolve it? Any advice or pointers would be greatly appreciated. Thanks!

nixudos commented 2 months ago

I had the same problem and asked claude.ai. Got this suggestion and it worked:

Here's a step-by-step approach you can try:

Upgrade pip, setuptools, and wheel: -m pip install --upgrade pip setuptools wheel

Install scikit-build-core: -m pip install scikit-build-core

Try installing the requirements again: -m pip install -r requirements.txt


Remember to do it from the python that comes with comfyUI. I made a copy of the bat file to update requirements in the Comfyui_CXH_joy_caption folder and ran it from there. Like so:

@echo off

set SCRIPT_DIR=%~dp0

cd /d "%SCRIPT_DIR%../../../python_embeded"

python.exe -m pip install scikit-build-core

pause

sunruichao commented 2 months ago

是不是没有安装编译环境啊!如果不想安装完整的 Visual Studio,可以只安装 Build Tools:

JonesChou commented 2 months ago

Using cached diskcache-5.6.3-py3-none-any.whl (45 kB) Building wheels for collected packages: llama-cpp-python Building wheel for llama-cpp-python (pyproject.toml) ... | I'm stuck here, how can I solve it?