Advertisement
Guest User

Untitled

a guest
Jun 19th, 2023
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.70 KB | None | 0 0
  1. pip install llama-cpp-python --no-cache-dir
  2. Collecting llama-cpp-python
  3. Downloading llama_cpp_python-0.1.64.tar.gz (1.5 MB)
  4. ---------------------------------------- 1.5/1.5 MB 9.6 MB/s eta 0:00:00
  5. Installing build dependencies ... done
  6. Getting requirements to build wheel ... done
  7. Preparing metadata (pyproject.toml) ... done
  8. 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)
  9. 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)
  10. 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)
  11. Building wheels for collected packages: llama-cpp-python
  12. Building wheel for llama-cpp-python (pyproject.toml) ... error
  13. error: subprocess-exited-with-error
  14.  
  15. × Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
  16. │ exit code: 1
  17. ╰─> [162 lines of output]
  18.  
  19.  
  20. --------------------------------------------------------------------------------
  21. -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  22. --------------------------------
  23. ---------------------------
  24. ----------------------
  25. -----------------
  26. ------------
  27. -------
  28. --
  29. Not searching for unused variables given on the command line.
  30. -- The C compiler identification is unknown
  31. CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
  32. No CMAKE_C_COMPILER could be found.
  33.  
  34. Tell CMake where to find the compiler by setting either the environment
  35. variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  36. the compiler, or to the compiler name if it is in the PATH.
  37.  
  38.  
  39. -- Configuring incomplete, errors occurred!
  40. --
  41. -------
  42. ------------
  43. -----------------
  44. ----------------------
  45. ---------------------------
  46. --------------------------------
  47. -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  48. --------------------------------------------------------------------------------
  49.  
  50.  
  51.  
  52. --------------------------------------------------------------------------------
  53. -- Trying 'Visual Studio 17 2022 x64 v143' generator
  54. --------------------------------
  55. ---------------------------
  56. ----------------------
  57. -----------------
  58. ------------
  59. -------
  60. --
  61. Not searching for unused variables given on the command line.
  62. -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
  63. -- The C compiler identification is MSVC 19.36.32532.0
  64. -- Detecting C compiler ABI info
  65. -- Detecting C compiler ABI info - done
  66. -- 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
  67. -- Detecting C compile features
  68. -- Detecting C compile features - done
  69. -- The CXX compiler identification is MSVC 19.36.32532.0
  70. 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):
  71. Policy CMP0054 is not set: Only interpret if() arguments as variables or
  72. keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
  73. details. Use the cmake_policy command to set the policy and suppress this
  74. warning.
  75.  
  76. Quoted variables like "MSVC" will no longer be dereferenced when the policy
  77. is set to NEW. Since the policy is not set the OLD behavior will be used.
  78. Call Stack (most recent call first):
  79. CMakeLists.txt:4 (ENABLE_LANGUAGE)
  80. This warning is for project developers. Use -Wno-dev to suppress it.
  81.  
  82. 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):
  83. Policy CMP0054 is not set: Only interpret if() arguments as variables or
  84. keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
  85. details. Use the cmake_policy command to set the policy and suppress this
  86. warning.
  87.  
  88. Quoted variables like "MSVC" will no longer be dereferenced when the policy
  89. is set to NEW. Since the policy is not set the OLD behavior will be used.
  90. Call Stack (most recent call first):
  91. CMakeLists.txt:4 (ENABLE_LANGUAGE)
  92. This warning is for project developers. Use -Wno-dev to suppress it.
  93.  
  94. -- Detecting CXX compiler ABI info
  95. -- Detecting CXX compiler ABI info - done
  96. -- 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
  97. -- Detecting CXX compile features
  98. -- Detecting CXX compile features - done
  99. -- Configuring done (1.7s)
  100. -- Generating done (0.0s)
  101. -- Build files have been written to: C:/git/github/oobabooga_windows/installer_files/pip-install-_mwvx5ky/llama-cpp-python_f38dfc779cd74415a999f32b431bbb04/_cmake_test_compile/build
  102. --
  103. -------
  104. ------------
  105. -----------------
  106. ----------------------
  107. ---------------------------
  108. --------------------------------
  109. -- Trying 'Visual Studio 17 2022 x64 v143' generator - success
  110. --------------------------------------------------------------------------------
  111.  
  112. Configuring Project
  113. Working directory:
  114. C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-build
  115. Command:
  116. '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
  117.  
  118. Not searching for unused variables given on the command line.
  119. CMake Warning:
  120. Ignoring extra path from command line:
  121.  
  122. ""-DLLAMA_CUBLAS=on""
  123.  
  124.  
  125. -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
  126. -- The C compiler identification is MSVC 19.36.32532.0
  127. -- The CXX compiler identification is MSVC 19.36.32532.0
  128. -- Detecting C compiler ABI info
  129. -- Detecting C compiler ABI info - done
  130. -- 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
  131. -- Detecting C compile features
  132. -- Detecting C compile features - done
  133. -- Detecting CXX compiler ABI info
  134. -- Detecting CXX compiler ABI info - done
  135. -- 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
  136. -- Detecting CXX compile features
  137. -- Detecting CXX compile features - done
  138. -- Found Git: C:/git/github/oobabooga_windows/installer_files/env/Library/bin/git.exe (found version "2.40.1.windows.1")
  139. fatal: not a git repository (or any of the parent directories): .git
  140. fatal: not a git repository (or any of the parent directories): .git
  141. CMake Warning at vendor/llama.cpp/CMakeLists.txt:112 (message):
  142. Git repository not found; to enable automatic generation of build info,
  143. make sure Git is installed and the project is a Git repository.
  144.  
  145.  
  146. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  147. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  148. -- Looking for pthread_create in pthreads
  149. -- Looking for pthread_create in pthreads - not found
  150. -- Looking for pthread_create in pthread
  151. -- Looking for pthread_create in pthread - not found
  152. -- Found Threads: TRUE
  153. -- Found CUDAToolkit: C:/git/github/oobabooga_windows/installer_files/env/include (found version "11.7.64")
  154. -- cuBLAS found
  155. 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):
  156. No CUDA toolset found.
  157. Call Stack (most recent call first):
  158. 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)
  159. 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)
  160. 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)
  161. vendor/llama.cpp/CMakeLists.txt:234 (enable_language)
  162.  
  163.  
  164. -- Configuring incomplete, errors occurred!
  165. Traceback (most recent call last):
  166. File "C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 666, in setup
  167. env = cmkr.configure(
  168. File "C:\git\github\oobabooga_windows\installer_files\pip-build-env-tkt8504_\overlay\Lib\site-packages\skbuild\cmaker.py", line 357, in configure
  169. raise SKBuildError(msg)
  170.  
  171. An error occurred while configuring with CMake.
  172. Command:
  173. '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
  174. Source directory:
  175. C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04
  176. Working directory:
  177. C:\git\github\oobabooga_windows\installer_files\pip-install-_mwvx5ky\llama-cpp-python_f38dfc779cd74415a999f32b431bbb04\_skbuild\win-amd64-3.10\cmake-build
  178. Please see CMake's output for more information.
  179.  
  180. [end of output]
  181.  
  182. note: This error originates from a subprocess, and is likely not a problem with pip.
  183. ERROR: Failed building wheel for llama-cpp-python
  184. Failed to build llama-cpp-python
  185. 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