Comments (2)
不好意思我是完全的新手,已經卡在這個錯誤一周以上,希望可以得到一點協助, 若是以下錯誤資訊提供不完全請再告訴我。
我目前已經成功安裝 cpp 版本的 chatglm ( 也就是可以生出chatglm-ggml.bin ), 可是當我想要安裝 python bindings 時,執行
pip install -U chatglm.cpp
會遇到以下錯誤 :Collecting chatglm-cpp Using cached chatglm-cpp-0.3.0.tar.gz (2.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: chatglm-cpp Building wheel for chatglm-cpp (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for chatglm-cpp (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [151 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\convert.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\langchain_api.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\openai_api.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\__init__.py -> build\lib.win-amd64-cpython-310\chatglm_cpp running egg_info writing chatglm_cpp.egg-info\PKG-INFO writing dependency_links to chatglm_cpp.egg-info\dependency_links.txt writing requirements to chatglm_cpp.egg-info\requires.txt writing top-level names to chatglm_cpp.egg-info\top_level.txt reading manifest file 'chatglm_cpp.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'chatglm_cpp.egg-info\SOURCES.txt' copying chatglm_cpp\_C.pyi -> build\lib.win-amd64-cpython-310\chatglm_cpp running build_ext -- Building for: Visual Studio 17 2022 -- The CXX compiler identification is MSVC 19.38.33133.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - broken CMake Error at C:/Users/USER/AppData/Local/Temp/pip-build-env-e97l2fwm/overlay/Lib/site-packages/cmake/data/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message): The C++ compiler "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: 'C:/Users/USER/AppData/Local/Temp/pip-install-v2l2qpbl/chatglm-cpp_b518e11025594844a891188ff5b0e480/build/temp.win-amd64-cpython-310/Release/chatglm_cpp._C/CMakeFiles/CMakeScratch/TryCompile-r7l977' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_8e8cf.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n .NET Framework ??MSBuild ?\xef\x8e\x87謓\xb1 17.8.3+195e7f5a3 \xe6\x92\x8c\xe8\x84\xa9??\xef\x95\x9d?\xe6\x92梁\xae\x87\xe8\x94\xad??2023/12/13 \xe9\x8a\x9d\xef\x95\x9d? 06:00:05?? \xe8\x9d倦\x80\xe6\x9a\xba?1 (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) \xe9\x8a\x9d\xef\x93\x82?\xe6\x92\xa0\xef\x8e\x87? "C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj"?? PrepareForBuild: \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "cmTC_8e8cf.dir\Debug\"?? C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: \xe9\x8a\x9d\xe5\x89\x94\xe5\x8c\xb1?獢\x85??謘踵\x92\x93?蝞\x87謆\x96?\xef\x84\x91??鞈\xad??\xe5\x86踐甽\xe6\x91殉次謆\x96?\xef\x84\x91?\xe5\x9a\x97\xef\x97\xba??蝎嗽\x80謕\x94閬\x8b?\xe8\x88迎\x81\x8d\xe6\x92\xa0\xee\x8e\x97\xef\x8a貉\x9d\x9d\xe8\x87\xac?\xe6\x92梁\xae\x87\xe8\x94\xad?瞏\x9b??\xee\x90\xb5???[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] \xe8\x9d荒\x93\x8f??謘踵\x92\x93?蝞\x8f甇\x87?賹\x83\xee\x9c\x85?蹇\x9a璆\x8a\xe9\x9c\x85\xe8\x87秋\xa8\x96\xe9\x96桃捂謘\x8e?\xef\x84\x93赯菜\x92\x98\xee\x90\xb1?\xe6\x92\xa0\xef\x8b\xa9??蹎g\x97\x84\xe9\x9a斗\x97\xa5?\xe6\x92\x85\xe6\x89\x8e\xc2\x80蹇\x98??\xc2\x80\xe9\x96啣\x96\x9f\xe6\x95阡\x9e\x88\xef\x8b\xaa?\xe5\x9a\x97\xef\x97\xbd??\xef\x81察\xa1\x88 https://aka.ms/cpp/structured-output?? \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\Debug\"?? \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\"?? InitializeBuildStatus: ?\xe6\x9c\x9b謘\x93?\xef\x8b\xa9?\xe9\x88\xad?"AlwaysCreate"\xe5\x9a\x97\xef\x97\xba?\xe7\x94\x87\xe6\x96\x97餈\xa4?\xe5\x85賊\x81\xa3\xe8\x9d\xa1?"cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\unsuccessfulbuild"?? \xe7\x94\x87?謓剝\x9c\x88\xef\x93\x81謆\x9c?蹇\x9c??\xe5\x94\xbe? "cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\unsuccessfulbuild"?? C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: "GetOutOfDateItems" \xe6\x92\x8c銋\xa9??瞏\x9b??\xe8\x8a\xb7??賹\x83?\xe6\x86剜\x9c\x9b???[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: System.InvalidOperationException: ?\xe2\x8a\xa5?\xe6\x92\xa0\xef\x8b\xad??獢\x90\xe8\x91\x89\xe8\x9d\x9c瞏\xb8???"%(FullPath)" \xe6\x86\x9f謅\x9b\xee\x9c\x85?\xe5\x94暹\xa5\x9d\xe6\x95\xba?"cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\ParallelCustomBuild.read.1.tlog"?蹇\x9b璆\x9d\xe6\x95\xba? cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\ParallelCustomBuild.read.1.tlog \xe9\xa0\x9e\xef\x86\xb3? OS \xe9\xa0\x9d\xe8\x87\xac?\xe9\x8a\x9d\xef\x93\x84??蹇\x98??皝\x94?\xe7\x8dg\x8e\x86?\xe8\x9d\x94\xe5\x8b\x97??\xef\x8e\x86???260 ?\xef\x95\x9d??\xef\x81麻\x80?[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.FileUtilities.ItemSpecModifiers.GetItemSpecModifier(String currentDirectory, String itemSpec, String definingProjectEscaped, String modifier, String& fullPath) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.Microsoft.Build.Framework.ITaskItem2.GetMetadataValueEscaped(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.GetMetadata(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.CPPTasks.GetOutOfDateItems.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] \xe6\x92\xa0\xef\x8e\x87? "C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) \xe6\x92梁\xae\x87\xe8\x94剜\x91堆\x97\xbb? -- \xe6\x86剜\x9c\x9b??? \xe6\x92梁\xae\x87\xe8\x94剜\x86剜\x9c\x9b??? "C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) (1) -> (PrepareForBuild ?\xe6\xa0\xbc?) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: \xe9\x8a\x9d\xe5\x89\x94\xe5\x8c\xb1?獢\x85??謘踵\x92\x93?蝞\x87謆\x96?\xef\x84\x91??鞈\xad??\xe5\x86踐甽\xe6\x91殉次謆\x96?\xef\x84\x91?\xe5\x9a\x97\xef\x97\xba??蝎嗽\x80謕\x94閬\x8b?\xe8\x88迎\x81\x8d\xe6\x92\xa0\xee\x8e\x97\xef\x8a貉\x9d\x9d\xe8\x87\xac?\xe6\x92梁\xae\x87\xe8\x94\xad?瞏\x9b??\xee\x90\xb5???[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] "C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) (1) -> (CustomBuild ?\xe6\xa0\xbc?) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: "GetOutOfDateItems" \xe6\x92\x8c銋\xa9??瞏\x9b??\xe8\x8a\xb7??賹\x83?\xe6\x86剜\x9c\x9b???[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: System.InvalidOperationException: ?\xe2\x8a\xa5?\xe6\x92\xa0\xef\x8b\xad??獢\x90\xe8\x91\x89\xe8\x9d\x9c瞏\xb8???"%(FullPath)" \xe6\x86\x9f謅\x9b\xee\x9c\x85?\xe5\x94暹\xa5\x9d\xe6\x95\xba?"cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\ParallelCustomBuild.read.1.tlog"?蹇\x9b璆\x9d\xe6\x95\xba? cmTC_8e8cf.dir\Debug\cmTC_8e8cf.tlog\ParallelCustomBuild.read.1.tlog \xe9\xa0\x9e\xef\x86\xb3? OS \xe9\xa0\x9d\xe8\x87\xac?\xe9\x8a\x9d\xef\x93\x84??蹇\x98??皝\x94?\xe7\x8dg\x8e\x86?\xe8\x9d\x94\xe5\x8b\x97??\xef\x8e\x86???260 ?\xef\x95\x9d??\xef\x81麻\x80?[C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.FileUtilities.ItemSpecModifiers.GetItemSpecModifier(String currentDirectory, String itemSpec, String definingProjectEscaped, String modifier, String& fullPath) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.Microsoft.Build.Framework.ITaskItem2.GetMetadataValueEscaped(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.GetMetadata(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.CPPTasks.GetOutOfDateItems.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:\Users\USER\AppData\Local\Temp\pip-install-v2l2qpbl\chatglm-cpp_b518e11025594844a891188ff5b0e480\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-r7l977\cmTC_8e8cf.vcxproj] 1 ?\xef\x95\xa0\xe9\x83\x8e?? 1 ?\xef\x95∴\x97\x84\xe9\x9a\xa4? \xe8\x9d秋\x9a\xa9??蹇\x9c? 00:00:00.72 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\build_meta.py", line 404, in build_wheel return self._build_with_temp_dir( File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\build_meta.py", line 389, in _build_with_temp_dir self.run_setup() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "<string>", line 127, in <module> File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup return distutils.core.setup(**attrs) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup return run_commands(dist) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands dist.run_commands() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run self.run_command("build") File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run _build_ext.run(self) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-e97l2fwm\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "<string>", line 120, in build_extension File "C:\Users\USER\anaconda3\envs\medbot\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-v2l2qpbl\\chatglm-cpp_b518e11025594844a891188ff5b0e480', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-v2l2qpbl\\chatglm-cpp_b518e11025594844a891188ff5b0e480\\build\\lib.win-amd64-cpython-310\\chatglm_cpp\\', '-DPYTHON_EXECUTABLE=C:\\Users\\USER\\anaconda3\\envs\\medbot\\python.exe', '-DCMAKE_BUILD_TYPE=Release', '-DCHATGLM_ENABLE_PYBIND=ON', '-DBUILD_SHARED_LIBS=OFF', '-A', 'x64', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-v2l2qpbl\\chatglm-cpp_b518e11025594844a891188ff5b0e480\\build\\lib.win-amd64-cpython-310\\chatglm_cpp']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for chatglm-cpp Failed to build chatglm-cpp ERROR: Could not build wheels for chatglm-cpp, which is required to install pyproject.toml-based projects
而當輸入指令
pip install chatglm-cpp[api] --force-reinstall -v --no-cache
: 則會產生以下錯誤 :pip install chatglm-cpp[api] --force-reinstall -v --no-cache Using pip 23.3.1 from C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip (python 3.10) Collecting chatglm-cpp[api] Downloading chatglm-cpp-0.3.0.tar.gz (2.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 2.8 MB/s eta 0:00:00 Running command pip subprocess to install build dependencies Collecting setuptools>=42 Using cached setuptools-69.0.2-py3-none-any.whl.metadata (6.3 kB) Collecting cmake>=3.12 Using cached cmake-3.28.0-py2.py3-none-win_amd64.whl.metadata (6.5 kB) Using cached setuptools-69.0.2-py3-none-any.whl (819 kB) Using cached cmake-3.28.0-py2.py3-none-win_amd64.whl (35.8 MB) Installing collected packages: cmake, setuptools Successfully installed cmake-3.28.0 setuptools-69.0.2 Installing build dependencies ... done Running command Getting requirements to build wheel running egg_info writing chatglm_cpp.egg-info\PKG-INFO writing dependency_links to chatglm_cpp.egg-info\dependency_links.txt writing requirements to chatglm_cpp.egg-info\requires.txt writing top-level names to chatglm_cpp.egg-info\top_level.txt reading manifest file 'chatglm_cpp.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'chatglm_cpp.egg-info\SOURCES.txt' Getting requirements to build wheel ... done Running command pip subprocess to install backend dependencies Collecting wheel Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB) Using cached wheel-0.42.0-py3-none-any.whl (65 kB) Installing collected packages: wheel Successfully installed wheel-0.42.0 Installing backend dependencies ... done Running command Preparing metadata (pyproject.toml) running dist_info creating C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info writing C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\PKG-INFO writing dependency_links to C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\dependency_links.txt writing requirements to C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\requires.txt writing top-level names to C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\top_level.txt writing manifest file 'C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\SOURCES.txt' reading manifest file 'C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp.egg-info\SOURCES.txt' creating 'C:\Users\USER\AppData\Local\Temp\pip-modern-metadata-lsudni3k\chatglm_cpp-0.3.0.dist-info' Preparing metadata (pyproject.toml) ... done Collecting fastapi[all] (from chatglm-cpp[api]) Obtaining dependency information for fastapi[all] from https://files.pythonhosted.org/packages/ad/b9/b7ea33663daffa9db94119ea2a3df8f97bdca297024145fe79a5a13d37af/fastapi-0.105.0-py3-none-any.whl.metadata Downloading fastapi-0.105.0-py3-none-any.whl.metadata (24 kB) Collecting sse-starlette (from chatglm-cpp[api]) Obtaining dependency information for sse-starlette from https://files.pythonhosted.org/packages/34/7e/d6087916bf58a4343459b47807a116a3a755e6ddd4857f375547e00f6252/sse_starlette-1.8.2-py3-none-any.whl.metadata Downloading sse_starlette-1.8.2-py3-none-any.whl.metadata (5.4 kB) Collecting anyio<4.0.0,>=3.7.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for anyio<4.0.0,>=3.7.1 from https://files.pythonhosted.org/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl.metadata Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB) Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 from https://files.pythonhosted.org/packages/0a/2b/64066de1c4cf3d4ed623beeb3bbf3f8d0cc26661f1e7d180ec5eb66b75a5/pydantic-2.5.2-py3-none-any.whl.metadata Downloading pydantic-2.5.2-py3-none-any.whl.metadata (65 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.2/65.2 kB 1.8 MB/s eta 0:00:00 Collecting starlette<0.28.0,>=0.27.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for starlette<0.28.0,>=0.27.0 from https://files.pythonhosted.org/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl.metadata Downloading starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB) Collecting typing-extensions>=4.8.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for typing-extensions>=4.8.0 from https://files.pythonhosted.org/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl.metadata Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB) Collecting email-validator>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for email-validator>=2.0.0 from https://files.pythonhosted.org/packages/09/68/d237a603d524ba052e292d71c89939bfa70e3ec7963b255cc3ef7a8770a0/email_validator-2.1.0.post1-py3-none-any.whl.metadata Downloading email_validator-2.1.0.post1-py3-none-any.whl.metadata (25 kB) Collecting httpx>=0.23.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for httpx>=0.23.0 from https://files.pythonhosted.org/packages/a2/65/6940eeb21dcb2953778a6895281c179efd9100463ff08cb6232bb6480da7/httpx-0.25.2-py3-none-any.whl.metadata Downloading httpx-0.25.2-py3-none-any.whl.metadata (6.9 kB) Collecting itsdangerous>=1.1.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB) Collecting jinja2>=2.11.2 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 2.0 MB/s eta 0:00:00 Collecting orjson>=3.2.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for orjson>=3.2.1 from https://files.pythonhosted.org/packages/b0/6e/1b75897f9afae0eb7d72b0bedd371ef2d9063d4616444b6f4364689785f3/orjson-3.9.10-cp310-none-win_amd64.whl.metadata Downloading orjson-3.9.10-cp310-none-win_amd64.whl.metadata (50 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 kB 1.3 MB/s eta 0:00:00 Collecting pydantic-extra-types>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for pydantic-extra-types>=2.0.0 from https://files.pythonhosted.org/packages/86/4b/add7a9b1bd0ca9b283bd7341bb9248d81c05cae762f43ed09a0b1da7921c/pydantic_extra_types-2.2.0-py3-none-any.whl.metadata Downloading pydantic_extra_types-2.2.0-py3-none-any.whl.metadata (2.6 kB) Collecting pydantic-settings>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for pydantic-settings>=2.0.0 from https://files.pythonhosted.org/packages/5d/c9/8042368e9a1e6e229b5ec5d88449441a3ee8f8afe09988faeb190af30248/pydantic_settings-2.1.0-py3-none-any.whl.metadata Downloading pydantic_settings-2.1.0-py3-none-any.whl.metadata (2.9 kB) Collecting python-multipart>=0.0.5 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 2.2 MB/s eta 0:00:00 Collecting pyyaml>=5.3.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for pyyaml>=5.3.1 from https://files.pythonhosted.org/packages/24/97/9b59b43431f98d01806b288532da38099cc6f2fea0f3d712e21e269c0279/PyYAML-6.0.1-cp310-cp310-win_amd64.whl.metadata Downloading PyYAML-6.0.1-cp310-cp310-win_amd64.whl.metadata (2.1 kB) Collecting ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 from https://files.pythonhosted.org/packages/b7/fe/34f18478d578831655b8d6428abb1a586bbc1244caafdd30b2776a4aff15/ujson-5.9.0-cp310-cp310-win_amd64.whl.metadata Downloading ujson-5.9.0-cp310-cp310-win_amd64.whl.metadata (8.9 kB) Collecting uvicorn>=0.12.0 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for uvicorn>=0.12.0 from https://files.pythonhosted.org/packages/7e/17/4b7a76fffa7babf397481040d8aef2725b2b81ae19f1a31b5ca0c17d49e6/uvicorn-0.24.0.post1-py3-none-any.whl.metadata Downloading uvicorn-0.24.0.post1-py3-none-any.whl.metadata (6.4 kB) Collecting idna>=2.8 (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for idna>=2.8 from https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB) Collecting sniffio>=1.1 (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading sniffio-1.3.0-py3-none-any.whl (10 kB) Collecting exceptiongroup (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for exceptiongroup from https://files.pythonhosted.org/packages/b8/9a/5028fd52db10e600f1c4674441b968cf2ea4959085bfb5b99fb1250e5f68/exceptiongroup-1.2.0-py3-none-any.whl.metadata Downloading exceptiongroup-1.2.0-py3-none-any.whl.metadata (6.6 kB) Collecting dnspython>=2.0.0 (from email-validator>=2.0.0->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for dnspython>=2.0.0 from https://files.pythonhosted.org/packages/f6/b4/0a9bee52c50f226a3cbfb54263d02bb421c7f2adc136520729c2c689c1e5/dnspython-2.4.2-py3-none-any.whl.metadata Downloading dnspython-2.4.2-py3-none-any.whl.metadata (4.9 kB) Collecting certifi (from httpx>=0.23.0->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for certifi from https://files.pythonhosted.org/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl.metadata Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB) Collecting httpcore==1.* (from httpx>=0.23.0->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for httpcore==1.* from https://files.pythonhosted.org/packages/56/ba/78b0a99c4da0ff8b0f59defa2f13ca4668189b134bd9840b6202a93d9a0f/httpcore-1.0.2-py3-none-any.whl.metadata Downloading httpcore-1.0.2-py3-none-any.whl.metadata (20 kB) Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx>=0.23.0->fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading h11-0.14.0-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 1.5 MB/s eta 0:00:00 Collecting MarkupSafe>=2.0 (from jinja2>=2.11.2->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/84/a8/c4aebb8a14a1d39d5135eb8233a0b95831cdc42c4088358449c3ed657044/MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl.metadata Downloading MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl.metadata (3.1 kB) Collecting annotated-types>=0.4.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for annotated-types>=0.4.0 from https://files.pythonhosted.org/packages/28/78/d31230046e58c207284c6b2c4e8d96e6d3cb4e52354721b944d3e1ee4aa5/annotated_types-0.6.0-py3-none-any.whl.metadata Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB) Collecting pydantic-core==2.14.5 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for pydantic-core==2.14.5 from https://files.pythonhosted.org/packages/3d/9f/bd9a41853a8ad6854cf126e72bb19a4849f79efe2d544b1a44f5351b9748/pydantic_core-2.14.5-cp310-none-win_amd64.whl.metadata Downloading pydantic_core-2.14.5-cp310-none-win_amd64.whl.metadata (6.6 kB) Collecting python-dotenv>=0.21.0 (from pydantic-settings>=2.0.0->fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB) Collecting click>=7.0 (from uvicorn>=0.12.0->uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for click>=7.0 from https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting colorama>=0.4 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB) Collecting httptools>=0.5.0 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for httptools>=0.5.0 from https://files.pythonhosted.org/packages/1e/fc/8a26c2adcd3f141e4729897633f03832b71ebea6f4c31cce67a92ded1961/httptools-0.6.1-cp310-cp310-win_amd64.whl.metadata Downloading httptools-0.6.1-cp310-cp310-win_amd64.whl.metadata (3.7 kB) Collecting watchfiles>=0.13 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for watchfiles>=0.13 from https://files.pythonhosted.org/packages/4b/ea/80527adf1ad51488a96fc201715730af5879f4dfeccb5e2069ff82d890d4/watchfiles-0.21.0-cp310-none-win_amd64.whl.metadata Downloading watchfiles-0.21.0-cp310-none-win_amd64.whl.metadata (5.0 kB) Collecting websockets>=10.4 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api]) Obtaining dependency information for websockets>=10.4 from https://files.pythonhosted.org/packages/41/b0/5ec054cfcf23adfc88d39359b85e81d043af8a141e3ac8ce40f45a5ce5f4/websockets-12.0-cp310-cp310-win_amd64.whl.metadata Downloading websockets-12.0-cp310-cp310-win_amd64.whl.metadata (6.8 kB) Downloading sse_starlette-1.8.2-py3-none-any.whl (8.9 kB) Downloading anyio-3.7.1-py3-none-any.whl (80 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 1.5 MB/s eta 0:00:00 Downloading email_validator-2.1.0.post1-py3-none-any.whl (32 kB) Downloading httpx-0.25.2-py3-none-any.whl (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.0/75.0 kB 2.1 MB/s eta 0:00:00 Downloading httpcore-1.0.2-py3-none-any.whl (76 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.9/76.9 kB 1.4 MB/s eta 0:00:00 Downloading orjson-3.9.10-cp310-none-win_amd64.whl (135 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.0/135.0 kB 1.6 MB/s eta 0:00:00 Downloading pydantic-2.5.2-py3-none-any.whl (381 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.9/381.9 kB 1.8 MB/s eta 0:00:00 Downloading pydantic_core-2.14.5-cp310-none-win_amd64.whl (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 2.6 MB/s eta 0:00:00 Downloading pydantic_extra_types-2.2.0-py3-none-any.whl (18 kB) Downloading pydantic_settings-2.1.0-py3-none-any.whl (11 kB) Downloading PyYAML-6.0.1-cp310-cp310-win_amd64.whl (145 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.3/145.3 kB 1.7 MB/s eta 0:00:00 Downloading starlette-0.27.0-py3-none-any.whl (66 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 1.8 MB/s eta 0:00:00 Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB) Downloading ujson-5.9.0-cp310-cp310-win_amd64.whl (41 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.9/41.9 kB 2.0 MB/s eta 0:00:00 Downloading uvicorn-0.24.0.post1-py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.7/59.7 kB 3.3 MB/s eta 0:00:00 Downloading fastapi-0.105.0-py3-none-any.whl (93 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.1/93.1 kB 1.8 MB/s eta 0:00:00 Downloading annotated_types-0.6.0-py3-none-any.whl (12 kB) Downloading click-8.1.7-py3-none-any.whl (97 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 1.9 MB/s eta 0:00:00 Downloading dnspython-2.4.2-py3-none-any.whl (300 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.4/300.4 kB 1.5 MB/s eta 0:00:00 Downloading httptools-0.6.1-cp310-cp310-win_amd64.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.2/58.2 kB 3.0 MB/s eta 0:00:00 Downloading idna-3.6-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 1.7 MB/s eta 0:00:00 Downloading MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl (17 kB) Downloading watchfiles-0.21.0-cp310-none-win_amd64.whl (279 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 279.7/279.7 kB 1.7 MB/s eta 0:00:00 Downloading websockets-12.0-cp310-cp310-win_amd64.whl (124 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 1.5 MB/s eta 0:00:00 Downloading certifi-2023.11.17-py3-none-any.whl (162 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 1.9 MB/s eta 0:00:00 Downloading exceptiongroup-1.2.0-py3-none-any.whl (16 kB) Building wheels for collected packages: chatglm-cpp Running command Building wheel for chatglm-cpp (pyproject.toml) running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\convert.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\langchain_api.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\openai_api.py -> build\lib.win-amd64-cpython-310\chatglm_cpp copying chatglm_cpp\__init__.py -> build\lib.win-amd64-cpython-310\chatglm_cpp running egg_info writing chatglm_cpp.egg-info\PKG-INFO writing dependency_links to chatglm_cpp.egg-info\dependency_links.txt writing requirements to chatglm_cpp.egg-info\requires.txt writing top-level names to chatglm_cpp.egg-info\top_level.txt reading manifest file 'chatglm_cpp.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'chatglm_cpp.egg-info\SOURCES.txt' copying chatglm_cpp\_C.pyi -> build\lib.win-amd64-cpython-310\chatglm_cpp running build_ext -- Building for: Visual Studio 17 2022 -- The CXX compiler identification is MSVC 19.38.33133.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - broken CMake Error at C:/Users/USER/AppData/Local/Temp/pip-build-env-sisy6cwe/overlay/Lib/site-packages/cmake/data/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message): The C++ compiler "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: 'C:/Users/USER/AppData/Local/Temp/pip-install-mvd63nud/chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d/build/temp.win-amd64-cpython-310/Release/chatglm_cpp._C/CMakeFiles/CMakeScratch/TryCompile-6r4km6' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_53f6e.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n .NET Framework ??MSBuild ?\xef\x8e\x87謓\xb1 17.8.3+195e7f5a3 \xe6\x92\x8c\xe8\x84\xa9??\xef\x95\x9d?\xe6\x92梁\xae\x87\xe8\x94\xad??2023/12/13 \xe9\x8a\x9d\xef\x95\x9d? 06:16:26?? \xe8\x9d倦\x80\xe6\x9a\xba?1 (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) \xe9\x8a\x9d\xef\x93\x82?\xe6\x92\xa0\xef\x8e\x87? "C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj"?? PrepareForBuild: \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "cmTC_53f6e.dir\Debug\"?? C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: \xe9\x8a\x9d\xe5\x89\x94\xe5\x8c\xb1?獢\x85??謘踵\x92\x93?蝞\x87謆\x96?\xef\x84\x91??鞈\xad??\xe5\x86踐甽\xe6\x91殉次謆\x96?\xef\x84\x91?\xe5\x9a\x97\xef\x97\xba??蝎嗽\x80謕\x94閬\x8b?\xe8\x88迎\x81\x8d\xe6\x92\xa0\xee\x8e\x97\xef\x8a貉\x9d\x9d\xe8\x87\xac?\xe6\x92梁\xae\x87\xe8\x94\xad?瞏\x9b??\xee\x90\xb5???[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] \xe8\x9d荒\x93\x8f??謘踵\x92\x93?蝞\x8f甇\x87?賹\x83\xee\x9c\x85?蹇\x9a璆\x8a\xe9\x9c\x85\xe8\x87秋\xa8\x96\xe9\x96桃捂謘\x8e?\xef\x84\x93赯菜\x92\x98\xee\x90\xb1?\xe6\x92\xa0\xef\x8b\xa9??蹎g\x97\x84\xe9\x9a斗\x97\xa5?\xe6\x92\x85\xe6\x89\x8e\xc2\x80蹇\x98??\xc2\x80\xe9\x96啣\x96\x9f\xe6\x95阡\x9e\x88\xef\x8b\xaa?\xe5\x9a\x97\xef\x97\xbd??\xef\x81察\xa1\x88 https://aka.ms/cpp/structured-output?? \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\Debug\"?? \xe7\x94\x87?謓剜\x92梁\xae\x87??獢\x85? "cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\"?? InitializeBuildStatus: ?\xe6\x9c\x9b謘\x93?\xef\x8b\xa9?\xe9\x88\xad?"AlwaysCreate"\xe5\x9a\x97\xef\x97\xba?\xe7\x94\x87\xe6\x96\x97餈\xa4?\xe5\x85賊\x81\xa3\xe8\x9d\xa1?"cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\unsuccessfulbuild"?? \xe7\x94\x87?謓剝\x9c\x88\xef\x93\x81謆\x9c?蹇\x9c??\xe5\x94\xbe? "cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\unsuccessfulbuild"?? C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: "GetOutOfDateItems" \xe6\x92\x8c銋\xa9??瞏\x9b??\xe8\x8a\xb7??賹\x83?\xe6\x86剜\x9c\x9b???[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: System.InvalidOperationException: ?\xe2\x8a\xa5?\xe6\x92\xa0\xef\x8b\xad??獢\x90\xe8\x91\x89\xe8\x9d\x9c瞏\xb8???"%(FullPath)" \xe6\x86\x9f謅\x9b\xee\x9c\x85?\xe5\x94暹\xa5\x9d\xe6\x95\xba?"cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\ParallelCustomBuild.read.1.tlog"?蹇\x9b璆\x9d\xe6\x95\xba? cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\ParallelCustomBuild.read.1.tlog \xe9\xa0\x9e\xef\x86\xb3? OS \xe9\xa0\x9d\xe8\x87\xac?\xe9\x8a\x9d\xef\x93\x84??蹇\x98??皝\x94?\xe7\x8dg\x8e\x86?\xe8\x9d\x94\xe5\x8b\x97??\xef\x8e\x86???260 ?\xef\x95\x9d??\xef\x81麻\x80?[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.FileUtilities.ItemSpecModifiers.GetItemSpecModifier(String currentDirectory, String itemSpec, String definingProjectEscaped, String modifier, String& fullPath) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.Microsoft.Build.Framework.ITaskItem2.GetMetadataValueEscaped(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.GetMetadata(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.CPPTasks.GetOutOfDateItems.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] \xe6\x92\xa0\xef\x8e\x87? "C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) \xe6\x92梁\xae\x87\xe8\x94剜\x91堆\x97\xbb? -- \xe6\x86剜\x9c\x9b??? \xe6\x92梁\xae\x87\xe8\x94剜\x86剜\x9c\x9b??? "C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) (1) -> (PrepareForBuild ?\xe6\xa0\xbc?) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: \xe9\x8a\x9d\xe5\x89\x94\xe5\x8c\xb1?獢\x85??謘踵\x92\x93?蝞\x87謆\x96?\xef\x84\x91??鞈\xad??\xe5\x86踐甽\xe6\x91殉次謆\x96?\xef\x84\x91?\xe5\x9a\x97\xef\x97\xba??蝎嗽\x80謕\x94閬\x8b?\xe8\x88迎\x81\x8d\xe6\x92\xa0\xee\x8e\x97\xef\x8a貉\x9d\x9d\xe8\x87\xac?\xe6\x92梁\xae\x87\xe8\x94\xad?瞏\x9b??\xee\x90\xb5???[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] "C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj" (?\xee\x93\x91頨\xab?\xe6\xa0\xbc?) (1) -> (CustomBuild ?\xe6\xa0\xbc?) -> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: "GetOutOfDateItems" \xe6\x92\x8c銋\xa9??瞏\x9b??\xe8\x8a\xb7??賹\x83?\xe6\x86剜\x9c\x9b???[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: System.InvalidOperationException: ?\xe2\x8a\xa5?\xe6\x92\xa0\xef\x8b\xad??獢\x90\xe8\x91\x89\xe8\x9d\x9c瞏\xb8???"%(FullPath)" \xe6\x86\x9f謅\x9b\xee\x9c\x85?\xe5\x94暹\xa5\x9d\xe6\x95\xba?"cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\ParallelCustomBuild.read.1.tlog"?蹇\x9b璆\x9d\xe6\x95\xba? cmTC_53f6e.dir\Debug\cmTC_53f6e.tlog\ParallelCustomBuild.read.1.tlog \xe9\xa0\x9e\xef\x86\xb3? OS \xe9\xa0\x9d\xe8\x87\xac?\xe9\x8a\x9d\xef\x93\x84??蹇\x98??皝\x94?\xe7\x8dg\x8e\x86?\xe8\x9d\x94\xe5\x8b\x97??\xef\x8e\x86???260 ?\xef\x95\x9d??\xef\x81麻\x80?[C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Shared.FileUtilities.ItemSpecModifiers.GetItemSpecModifier(String currentDirectory, String itemSpec, String definingProjectEscaped, String modifier, String& fullPath) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.Microsoft.Build.Framework.ITaskItem2.GetMetadataValueEscaped(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.Utilities.TaskItem.GetMetadata(String metadataName) [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.CPPTasks.GetOutOfDateItems.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(203,5): error MSB4018: ??Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\build\temp.win-amd64-cpython-310\Release\chatglm_cpp._C\CMakeFiles\CMakeScratch\TryCompile-6r4km6\cmTC_53f6e.vcxproj] 1 ?\xef\x95\xa0\xe9\x83\x8e?? 1 ?\xef\x95∴\x97\x84\xe9\x9a\xa4? \xe8\x9d秋\x9a\xa9??蹇\x9c? 00:00:00.73 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\build_meta.py", line 404, in build_wheel return self._build_with_temp_dir( File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\build_meta.py", line 389, in _build_with_temp_dir self.run_setup() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "<string>", line 127, in <module> File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup return distutils.core.setup(**attrs) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup return run_commands(dist) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands dist.run_commands() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run self.run_command("build") File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run _build_ext.run(self) File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "C:\Users\USER\AppData\Local\Temp\pip-build-env-sisy6cwe\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "<string>", line 120, in build_extension File "C:\Users\USER\anaconda3\envs\medbot\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-mvd63nud\\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-mvd63nud\\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\\build\\lib.win-amd64-cpython-310\\chatglm_cpp\\', '-DPYTHON_EXECUTABLE=C:\\Users\\USER\\anaconda3\\envs\\medbot\\python.exe', '-DCMAKE_BUILD_TYPE=Release', '-DCHATGLM_ENABLE_PYBIND=ON', '-DBUILD_SHARED_LIBS=OFF', '-DGGML_CUBLAS=ON', '-A', 'x64', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-mvd63nud\\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d\\build\\lib.win-amd64-cpython-310\\chatglm_cpp']' returned non-zero exit status 1. error: subprocess-exited-with-error × Building wheel for chatglm-cpp (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: 'C:\Users\USER\anaconda3\envs\medbot\python.exe' 'C:\Users\USER\anaconda3\envs\medbot\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' build_wheel 'C:\Users\USER\AppData\Local\Temp\tmp5f331eem' cwd: C:\Users\USER\AppData\Local\Temp\pip-install-mvd63nud\chatglm-cpp_eeb2a88074004d83bad8d48b6dafdf9d Building wheel for chatglm-cpp (pyproject.toml) ... error ERROR: Failed building wheel for chatglm-cpp Failed to build chatglm-cpp ERROR: Could not build wheels for chatglm-cpp, which is required to install pyproject.toml-based projects
故上來尋求幫助,謝謝
我也出现了相同的错误
from chatglm.cpp.
Ayo also check this #287
from chatglm.cpp.
Related Issues (20)
- 上下文推理时速度会变慢,请问应该怎么解决? HOT 2
- chatglm.cpp:152 check failed (messages.size() % 2 == 1) invalid chat messages size 2 HOT 2
- [Solved] Windows 上 chatglm_cpp 模块 "DLL load failed while importing _C" 问题 HOT 2
- pip install -U chatglm-cpp 失败: OSError: [WinError 1] 函数不正确。: 'R:\\Temp\\pip-build-env-mhz20gwx\\overlay\\Lib\\site-packages\\cmake\\data\\bin\\cmake-gui.exe'
- win11 chatglm3-6b 转换 q4_0报错
- build之后,缺少main文件
- GLM-4-9B已发布,是否有支持计划 HOT 12
- Will it support glm-4-9b-chat? HOT 1
- chatglm4: Run ./build/bin/main, Error: invalid model type 4 HOT 2
- Can't use web_demo in glm4 HOT 1
- glm4运行报错 HOT 1
- openai server非流式请求报错 HOT 6
- 请问是否支持了GLM-4V? HOT 7
- 使用openai_api.py启动量化后的glm4模型报错 HOT 4
- chatglm_cpp-0.3.4 终于成功了
- libre2.so.11 not found HOT 1
- glm4量化之后开始胡言乱语有人遇到过吗? HOT 7
- openai server出现空回答 HOT 2
- 同一模型,open_api.py的显存用量显著大于cli HOT 1
- 在maos上启用metal的话似乎必须安装xcode了? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatglm.cpp.