Errors while running this repo when llama-cpp-python pip install #336
Replies: 4 comments 2 replies
-
YES! I am having the exact same issue! I tried it on my mac os 13 host machine and and also my Windows10 guest machine. |
Beta Was this translation helpful? Give feedback.
-
The instructions given in the current README.md file is not very healthy... |
Beta Was this translation helpful? Give feedback.
-
Has Visual Studio installed? Can you share what components are installed? Make sure to include Desktop Development in C++ and Universal Windows Platform Development and C++(v142 ) add-on in optional features. |
Beta Was this translation helpful? Give feedback.
-
The Error you’re seeing is because you’re missing some components that Python needs to install the packages: 1.Download and install Microsoft C++ Build Tools from this link: https://visualstudio.microsoft.com/visual-cpp-build-tools/. Make sure to select the options for C++ development during installation. This should solve the issue because the package you’re trying to install needs to compile some code, and it requires the Microsoft C++ compiler to do that. |
Beta Was this translation helpful? Give feedback.
-
**Building wheels for collected packages: llama-cpp-python, hnswlib
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [329 lines of output]**
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' 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 hnswlib
Failed to build llama-cpp-python hnswlib
ERROR: Could not build wheels for llama-cpp-python, hnswlib, which is required to install pyproject.toml-based projects
Beta Was this translation helpful? Give feedback.
All reactions