THUDM / ChatGLM3

ChatGLM3 series: Open Bilingual Chat LLMs | 开源双语对话语言模型
Apache License 2.0
13.19k stars 1.52k forks source link

Getting requirements to build wheel did not run successfully. #1259

Open therobot1 opened 1 month ago

therobot1 commented 1 month ago

System Info / 系統信息

运行以下命令时:pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 出现这个问题: × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "C:\Users\11\anaconda3\envs\windows_chatglm3-6b\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\11\anaconda3\envs\windows_chatglm3-6b\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\11\anaconda3\envs\windows_chatglm3-6b\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\11\AppData\Local\Temp\pip-build-env-8pwdabyr\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\11\AppData\Local\Temp\pip-build-env-8pwdabyr\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\11\AppData\Local\Temp\pip-build-env-8pwdabyr\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 11, in File "C:\Users\11\AppData\Local\Temp\pip-build-env-8pwdabyr\overlay\Lib\site-packages\torch__init__.py", line 141, in raise err OSError: [WinError 126] 找不到指定的模块。 Error loading "C:\Users\11\AppData\Local\Temp\pip-build-env-8pwdabyr\overlay\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel 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.

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

Reproduction / 复现过程

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

Expected behavior / 期待表现

解决这个问题

zRzRzRzRzRzRzR commented 1 month ago

哪个依赖无法安装