Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pip install llama-cpp-python --no-cache-dir
- Collecting llama-cpp-python
- Downloading llama_cpp_python-0.1.64.tar.gz (1.5 MB)
- ---------------------------------------- 1.5/1.5 MB 9.6 MB/s eta 0:00:00
- Installing build dependencies ... done
- Getting requirements to build wheel ... done
- Preparing metadata (pyproject.toml) ... done
- Requirement already satisfied: typing-extensions>=4.5.0 in c:\git\github\oobabooga_windows\installer_files\env\lib\site-packages (from llama-cpp-python) (4.6.3)
- Requirement already satisfied: numpy>=1.20.0 in c:\git\github\oobabooga_windows\installer_files\env\lib\site-packages (from llama-cpp-python) (1.24.3)
- Requirement already satisfied: diskcache>=5.6.1 in c:\git\github\oobabooga_windows\installer_files\env\lib\site-packages (from llama-cpp-python) (5.6.1)
- 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
- ╰─> [162 lines of output]
- --------------------------------------------------------------------------------
- -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
- --------------------------------
- ---------------------------
- ----------------------
- -----------------
- ------------
- -------
- --
- Not searching for unused variables given on the command line.
- -- The C compiler identification is unknown
- CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
- No CMAKE_C_COMPILER could be found.
- Tell CMake where to find the compiler by setting either the environment
- variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
- the compiler, or to the compiler name if it is in the PATH.
- -- Configuring incomplete, errors occurred!
- --
- -------
- ------------
- -----------------
- ----------------------
- ---------------------------
- --------------------------------
- -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
- --------------------------------------------------------------------------------
- --------------------------------------------------------------------------------
- -- Trying 'Visual Studio 17 2022 x64 v143' generator
- --------------------------------
- ---------------------------
- ----------------------
- -----------------
- ------------
- -------
- --
- Not searching for unused variables given on the command line.
- -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
- -- The C compiler identification is MSVC 19.36.32532.0
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- The CXX compiler identification is MSVC 19.36.32532.0
- CMake Warning (dev) at C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
- Policy CMP0054 is not set: Only interpret if() arguments as variables or
- keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
- details. Use the cmake_policy command to set the policy and suppress this
- warning.
- Quoted variables like "MSVC" will no longer be dereferenced when the policy
- is set to NEW. Since the policy is not set the OLD behavior will be used.
- Call Stack (most recent call first):
- CMakeLists.txt:4 (ENABLE_LANGUAGE)
- This warning is for project developers. Use -Wno-dev to suppress it.
- CMake Warning (dev) at C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
- Policy CMP0054 is not set: Only interpret if() arguments as variables or
- keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
- details. Use the cmake_policy command to set the policy and suppress this
- warning.
- Quoted variables like "MSVC" will no longer be dereferenced when the policy
- is set to NEW. Since the policy is not set the OLD behavior will be used.
- Call Stack (most recent call first):
- CMakeLists.txt:4 (ENABLE_LANGUAGE)
- This warning is for project developers. Use -Wno-dev to suppress it.
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Configuring done (1.7s)
- -- Generating done (0.0s)
- -- Build files have been written to: C:/git/github/oobabooga_windows/installer_files/pip-install-_mwvx5ky/llama-cpp-python_f38dfc779cd74415a999f32b431bbb04/_cmake_test_compile/build
- --
- -------
- ------------
- -----------------
- ----------------------
- ---------------------------
- --------------------------------
- -- Trying 'Visual Studio 17 2022 x64 v143' generator - success
- --------------------------------------------------------------------------------
- Configuring Project
- Working directory:
- C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-build
- Command:
- 'C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04' -G 'Visual Studio 17 2022' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.11 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPYTHON_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPython_ROOT_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPython_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' '-DPython3_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPython3_ROOT_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPython3_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' -T v143 -A x64 '"-DLLAMA_CUBLAS=on"' -DCMAKE_BUILD_TYPE:STRING=Release -DLLAMA_CUBLAS=on
- Not searching for unused variables given on the command line.
- CMake Warning:
- Ignoring extra path from command line:
- ""-DLLAMA_CUBLAS=on""
- -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
- -- The C compiler identification is MSVC 19.36.32532.0
- -- The CXX compiler identification is MSVC 19.36.32532.0
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Found Git: C:/git/github/oobabooga_windows/installer_files/env/Library/bin/git.exe (found version "2.40.1.windows.1")
- fatal: not a git repository (or any of the parent directories): .git
- fatal: not a git repository (or any of the parent directories): .git
- CMake Warning at vendor/llama.cpp/CMakeLists.txt:112 (message):
- Git repository not found; to enable automatic generation of build info,
- make sure Git is installed and the project is a Git repository.
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
- -- Looking for pthread_create in pthreads
- -- Looking for pthread_create in pthreads - not found
- -- Looking for pthread_create in pthread
- -- Looking for pthread_create in pthread - not found
- -- Found Threads: TRUE
- -- Found CUDAToolkit: C:/git/github/oobabooga_windows/installer_files/env/include (found version "11.7.64")
- -- cuBLAS found
- CMake Error at C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:501 (message):
- No CUDA toolset found.
- Call Stack (most recent call first):
- C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
- C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
- C:/git/github/oobabooga_windows/installer_files/pip-build-env-tkt8504_/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
- vendor/llama.cpp/CMakeLists.txt:234 (enable_language)
- -- Configuring incomplete, errors occurred!
- Traceback (most recent call last):
- File "C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 666, in setup
- env = cmkr.configure(
- File "C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\cmaker.py", line 357, in configure
- raise SKBuildError(msg)
- An error occurred while configuring with CMake.
- Command:
- 'C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04' -G 'Visual Studio 17 2022' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.11 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPYTHON_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPython_ROOT_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPython_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' '-DPython3_EXECUTABLE:PATH=C:\git\github\oobabooga_windows\installer_files\env\python.exe' '-DPython3_ROOT_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\git\github\oobabooga_windows\installer_files\env\Include' '-DPython3_LIBRARY:PATH=C:\git\github\oobabooga_windows\installer_files\env\libs\python310.lib' -T v143 -A x64 '"-DLLAMA_CUBLAS=on"' -DCMAKE_BUILD_TYPE:STRING=Release -DLLAMA_CUBLAS=on
- Source directory:
- C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04
- Working directory:
- C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-build
- Please see CMake's output for more information.
- [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
- ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement