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

installing requirements llama-cpp-python error #504

Closed
Vector-9974 opened this issue May 28, 2023 · 2 comments
Closed

installing requirements llama-cpp-python error #504

Vector-9974 opened this issue May 28, 2023 · 2 comments
Labels
bug Something isn't working primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT

Comments

@Vector-9974
Copy link

Describe the bug and how to reproduce it
While installing the requirements for the library via the requirements file, the llama-cpp-python library is throwing an error and it is not being able to be built as this is the error that is occuring

C:\Users\Work\AppData\Local\Temp\pip-install-vc40mq09\llama-cpp-python_750867ce395148aeb5905d4aa919a0ee\vendor\llama.cpp\ggml.c(895): error C2146: syntax error: missing ')' before identifier 'x'
C:\Users\Work\AppData\Local\Temp\pip-install-vc40mq09\llama-cpp-python_750867ce395148aeb5905d4aa919a0ee\vendor\llama.cpp\ggml.c(895): error C2061: syntax error: identifier 'x'
C:\Users\Work\AppData\Local\Temp\pip-install-vc40mq09\llama-cpp-python_750867ce395148aeb5905d4aa919a0ee\vendor\llama.cpp\ggml.c(895): error C2059: syntax error: ';'
C:\Users\Work\AppData\Local\Temp\pip-install-vc40mq09\llama-cpp-python_750867ce395148aeb5905d4aa919a0ee\vendor\llama.cpp\ggml.c(895): error C2059: syntax error: ','
C:\Users\Work\AppData\Local\Temp\pip-install-vc40mq09\llama-cpp-python_750867ce395148aeb5905d4aa919a0ee\vendor\llama.cpp\ggml.c(895): error C2059: syntax error: ')'

Environment (please complete the following information):

  • OS / hardware: Windows 11
  • Python version 3.11.3

How should I go about rectifying this error

@Vector-9974 Vector-9974 added the bug Something isn't working label May 28, 2023
@weasel4o
Copy link

@Vector-9974 - try installing Visual Studio (not VS Code, but Visual studio) - it appears that you are lacking a C++ compiler on your PC. During the installation, make sure to add the C++ build tools in the installer selection options. Then run the pip install of the package again.

@hakhok
Copy link

hakhok commented May 28, 2023

If using python 3.11, downgrade to python 3.10
chroma-core/chroma#163 (comment)

@imartinez imartinez added the primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working primordial Related to the primordial version of PrivateGPT, which is now frozen in favour of the new PrivateGPT
Projects
None yet
Development

No branches or pull requests

4 participants