Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] llama_cpp module not found #75

Open
Fjfifnrkdo opened this issue Aug 21, 2024 · 2 comments
Open

[BUG] llama_cpp module not found #75

Fjfifnrkdo opened this issue Aug 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Fjfifnrkdo
Copy link

Describe the bug
The MacOS produces “ModuleNotFoundError: No module named ‘llama_cpp’

To Reproduce
Steps to reproduce the behavior:

  1. Try importing the node via ComfyUI manager on a MacOS device.

Expected behavior
For it to download like most nodes do already on ComfyUI, cross device compatibility.

@Fjfifnrkdo Fjfifnrkdo added the bug Something isn't working label Aug 21, 2024
@secretivebanana
Copy link

secretivebanana commented Aug 28, 2024

Had a similar or same error. I fixed it by:

  1. Close ComfyUI.
  2. Activate ComfyUI virtual environment (venv) from venv/scripts/activate.bat.
  3. In the command window: pip uninstall llama-cpp-python.
  4. Then again in command window: pip install llama-cpp-python.
  5. Re-open ComfyUI.

@hakemz91
Copy link

hakemz91 commented Oct 8, 2024

Had the issue and trying the secretivebanana fix above but it said don't have llama-cpp-python to uninstall. Then I tried to install llama-cpp-python then it said scikit_build_core is missing...then I install that scikit_build_core and run again the pip llama-cpp-python..and it took like a while to build the wheel but fortunately it successful eventually. Feel so good to get rid of the annoying red error text. So here is the command for fixing it in my case, which need to be run in root folder of comfyui (where folder python_embeded located, open cmd here):

.\python_embeded\python.exe -m pip install scikit_build_core
.\python_embeded\python.exe -m pip install llama-cpp-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants