You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
版本 Windows 10 IoT 企业版 LTSC
版本号 21H2
安装日期 2023/8/1
操作系统内部版本 19044.4291
体验 Windows Feature Experience Pack 1000.19056.1000.0
Python 3.11.5
控制台输出
(base) PS C:\Users\10632\Documents\GitHub\BigModel\chatglm3-6b> pip install -U chatglm-cpp
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting chatglm-cpp
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/58/42/177051a247d3a3b76574604f152c214014958b47b4d49b42df53eb041528/chatglm_cpp-0.3.2.tar.gz (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 197.9 kB/s eta 0:00:00
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
╰─> [92 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\chatglm_cpp
copying chatglm_cpp\convert.py -> build\lib.win-amd64-cpython-311\chatglm_cpp
copying chatglm_cpp\langchain_api.py -> build\lib.win-amd64-cpython-311\chatglm_cpp
copying chatglm_cpp\openai_api.py -> build\lib.win-amd64-cpython-311\chatglm_cpp
copying chatglm_cpp\__init__.py -> build\lib.win-amd64-cpython-311\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-311\chatglm_cpp
running build_ext
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Scripts\cmake.exe\__main__.py", line 4, in <module>
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\cmake\__init__.py", line 33, in <module>
resolved_script = Path(script.locate()).resolve(strict=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\pathlib.py", line 993, in resolve
s = os.path.realpath(self, strict=strict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen ntpath>", line 696, in realpath
OSError: [WinError 1] 函数不正确。: 'R:\\Temp\\pip-build-env-mhz20gwx\\overlay\\Lib\\site-packages\\cmake\\data\\bin\\cmake-gui.exe'
Traceback (most recent call last):
File "C:\ProgramData\anaconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\ProgramData\anaconda3\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:\ProgramData\anaconda3\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 "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 128, in <module>
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "R:\Temp\pip-build-env-mhz20gwx\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run
self.run_command("build")
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 91, in run
_build_ext.run(self)
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
self.build_extensions()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions
self._build_extensions_serial()
File "R:\Temp\pip-build-env-mhz20gwx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial
self.build_extension(ext)
File "<string>", line 121, in build_extension
File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', 'R:\\Temp\\pip-install-rc48e9er\\chatglm-cpp_774569c5ca16445988f53e68713e5553', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=R:\\Temp\\pip-
install-rc48e9er\\chatglm-cpp_774569c5ca16445988f53e68713e5553\\build\\lib.win-amd64-cpython-311\\chatglm_cpp\\', '-DPYTHON_EXECUTABLE=C:\\ProgramData\\anaconda3\\python.exe', '-DCMAKE
_BUILD_TYPE=Release', '-DCHATGLM_ENABLE_PYBIND=ON', '-DCHATGLM_ENABLE_EXAMPLES=OFF', '-DBUILD_SHARED_LIBS=OFF', '-A', 'x64', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=R:\\Temp\\pip-ins
tall-rc48e9er\\chatglm-cpp_774569c5ca16445988f53e68713e5553\\build\\lib.win-amd64-cpython-311\\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
The text was updated successfully, but these errors were encountered:
系统环境
版本 Windows 10 IoT 企业版 LTSC
版本号 21H2
安装日期 2023/8/1
操作系统内部版本 19044.4291
体验 Windows Feature Experience Pack 1000.19056.1000.0
Python 3.11.5
控制台输出
The text was updated successfully, but these errors were encountered: