pppp555cgu 2025-07-10 18:38 采纳率: 0%
浏览 147

Getting requirements to build wheel did not run successfully.

Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/home/zzc12024132094/.conda/envs/LF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/home/zzc12024132094/.conda/envs/LF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/home/zzc12024132094/.conda/envs/LF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-e6yfe3hd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/tmp/pip-build-env-e6yfe3hd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-e6yfe3hd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-e6yfe3hd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 21, in
ValueError: You are not using a virtual environment
[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.
在安装llamafactory时出现这个问题

  • 写回答

8条回答 默认 最新

  • 阿里嘎多学长 2025-07-10 18:38
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    问题解答

    你遇到了一个问题,尝试构建wheel时,获取依赖项失败了。错误信息中显示了subprocess-exited-with-error,这可能是因为构建wheel时遇到了依赖项安装失败的问题。

    解决方案:

    1. 检查Python版本是否正确。如果你使用的是Python 3.x,尝试使用python3 -m pip wheel命令来构建wheel。
    2. 检查依赖项是否正确。如果你使用的是virtualenv环境,尝试使用pip install -r requirements.txt命令来安装依赖项。
    3. 检查Linux系统的依赖项是否正确。如果你使用的是Linux系统,尝试使用sudo apt-get install -y build-essential命令来安装基本的编译工具。
    4. 检查wheel构建命令是否正确。如果你使用的是wheel构建命令,尝试使用python setup.py bdist_wheel命令来构建wheel。

    如果以上解决方案都不能解决问题,你可以提供更多的错误信息和环境信息,以便更好地帮助你解决问题。

    评论

报告相同问题?

问题事件

  • 创建了问题 7月10日