Skip to content

Could not Install llama-cpp-python  #1216

@Thanush1804

Description

@Thanush1804

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions