abetlen / llama-cpp-python

Python bindings for llama.cpp
https://llama-cpp-python.readthedocs.io
MIT License
7.7k stars 925 forks source link

Could not Install llama-cpp-python #1216

Open Thanush1804 opened 6 months ago

Thanush1804 commented 6 months ago

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 ofpthread_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

JoKenPo commented 6 months ago

same error here

lritter79 commented 3 months ago

Same here

defaultsecurity commented 2 months ago

I have the same problem on Ubuntu 22.04