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
I have read the above rules and searched the existing issues.
System Info
Mac M3
Python 3.10
问题描述
按照readme文档进行安装LLaMA-Factory出现报错。
报错信息
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.10`.
× Failed to build `autoawq==0.2.8`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/trytik/.cache/uv/builds-v0/.tmpJM1Hj7/lib/python3.10/site-packages/setuptools/build_meta.py", line 334, in
get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/Users/trytik/.cache/uv/builds-v0/.tmpJM1Hj7/lib/python3.10/site-packages/setuptools/build_meta.py", line 304, in
_get_build_requires
self.run_setup()
File "/Users/trytik/.cache/uv/builds-v0/.tmpJM1Hj7/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/Users/trytik/.cache/uv/builds-v0/.tmpJM1Hj7/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'torch'
hint: This error likely indicates that `[email protected]` depends on `torch`, but doesn't declare it as a build dependency. If `autoawq`
is a first-party package, consider adding `torch` to its `build-system.requires`. Otherwise, `uv pip install torch` into the
environment and re-run with `--no-build-isolation`.
help: `autoawq` (v0.2.8) was included because `llamafactory[awq]` (v0.9.2.dev0) depends on `autoawq`
× Failed to build `autoawq==0.2.8`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/trytik/.cache/uv/builds-v0/.tmpHvxSdu/lib/python3.10/site-packages/setuptools/build_meta.py", line 334, in
get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/Users/trytik/.cache/uv/builds-v0/.tmpHvxSdu/lib/python3.10/site-packages/setuptools/build_meta.py", line 304, in
_get_build_requires
self.run_setup()
File "/Users/trytik/.cache/uv/builds-v0/.tmpHvxSdu/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/Users/trytik/.cache/uv/builds-v0/.tmpHvxSdu/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'torch'
hint: This error likely indicates that `[email protected]` depends on `torch`, but doesn't declare it as a build dependency. If `autoawq`
is a first-party package, consider adding `torch` to its `build-system.requires`. Otherwise, `uv pip install torch` into the
environment and re-run with `--no-build-isolation`.
The text was updated successfully, but these errors were encountered:
Reminder
System Info
问题描述
按照readme文档进行安装
LLaMA-Factory
出现报错。报错信息
Reproduction
Others
尝试的解决方案:手动安装
autoawq
,uv pip install torch
然后安装uv pip install autoawq
,出现报错The text was updated successfully, but these errors were encountered: