小编heh*_*ehe的帖子

安装 python 包时出错:llama-cpp-python

我正在使用 Llama 创建一个应用程序。以前我使用过 openai,但正在寻找免费的替代品。根据我有限的研究,这个库提供了类似 openai 的 api 访问,使其可以很容易地添加到我现有的代码中。但是该库在下载时出现错误。我尝试安装 cmake 但没有帮助。

\n
Building wheels for collected packages: llama-cpp-python\n  Building wheel for llama-cpp-python (pyproject.toml) ... error\n  error: subprocess-exited-with-error\n\n  \xc3\x97 Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [20 lines of output]\n      *** scikit-build-core 0.5.1 using CMake 3.27.7 (wheel)\n      *** Configuring CMake...\n      2023-10-10 21:23:02,749 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None\n      loading initial cache file C:\\Users\\ARUSHM~1\\AppData\\Local\\Temp\\tmpf1bzj6ul\\build\\CMakeInit.txt\n      -- Building for: …
Run Code Online (Sandbox Code Playgroud)

python llama llama-cpp-python

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

llama ×1

llama-cpp-python ×1

python ×1