Error installing llama-cpp-pythin on Windows | Pls help #1001
Unanswered
arjuns2020
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you have CMake installed and set? It looks from your error above like you don't; would need to do that first. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
pip install llama-cpp-python --no-cache-dir
Collecting llama-cpp-python
Downloading llama_cpp_python-0.2.22.tar.gz (8.7 MB)
---------------------------------------- 8.7/8.7 MB 4.1 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=4.5.0 in c:\users\arjun\anaconda3\envs\privategpt\lib\site-packages (from llama-cpp-python) (4.8.0)
Requirement already satisfied: numpy>=1.20.0 in c:\users\arjun\anaconda3\envs\privategpt\lib\site-packages (from llama-cpp-python) (1.26.0)
Requirement already satisfied: diskcache>=5.6.1 in c:\users\arjun\anaconda3\envs\privategpt\lib\site-packages (from llama-cpp-python) (5.6.3)
Building wheels for collected packages: llama-cpp-python
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
╰─> [20 lines of output]
*** scikit-build-core 0.7.0 using CMake 3.27.9 (wheel)
*** Configuring CMake...
2023-12-11 22:27:04,430 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
loading initial cache file C:\Users\arjun\AppData\Local\Temp\tmpmrvmqll4\build\CMakeInit.txt
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Running
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
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects
Beta Was this translation helpful? Give feedback.
All reactions