abetlen / abetlen/llama-cpp-python

Could not Install llama-cpp-python

Open
#1,216 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10.6k
Forks
1.4k
PR merge metrics
PR metrics pending

Description

i am installing llama-cpp-python for privategpt, after following the instructions i was getting few errors one of the error was privategpt requires llama-cpp-python at several process
so I started installing llama-cpp-python using pip command after several issue with not having c++ compilers , i downloaded w64devkit as per the instruction in github repository , after installing when i ran pip install llama-cpp-python , now i getting this error

`
C:\w64devkit\bin/ld.exe: C:/w64devkit/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libpthread.a(libwinpthread_la-thread.o):thread.c:(.text+0x103f): multiple definition of `pthread_self'; ../../libllama.dll.a(libllama_dll_d000862.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
make[2]: *** [vendor\llama.cpp\examples\llava\CMakeFiles\llava-cli.dir\build.make:105: vendor/llama.cpp/examples/llava/llava-cli.exe] Error 1
make[2]: Leaving directory 'C:/Users/Vicky/AppData/Local/Temp/tmpww6tixp5/build'
make[1]: *** [CMakeFiles\Makefile2:388: vendor/llama.cpp/examples/llava/CMakeFiles/llava-cli.dir/all] Error 2
make[1]: Leaving directory 'C:/Users/Vicky/AppData/Local/Temp/tmpww6tixp5/build'
*** CMake build failed
[end 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
Failed to build llama-cpp-python
ct.toml-based projects
`
help me to fix this error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.