You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Arch Linux安装Fooocus AI遇pip外部管理环境及编译错误求助

安装Fooocus AI时的依赖构建错误(Arch Linux环境)

操作步骤

  1. 创建虚拟环境:python3 -m venv fooocus_env
  2. 激活虚拟环境:source fooocus_env/bin/activate

执行pip install -r requirements_versions.txt后出现以下错误:

(fooocus_env) ➜  Fooocus git:(main) pip install -r requirements_versions.txt
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.

重复执行该命令仍报相同错误。

已尝试的解决方法

  • pip install --upgrade pip
  • 安装指定版本pip:pip install pip==21.3.1(导致pip损坏,已通过python -m ensurepip --upgrade修复)
  • 改用python3 -m pip install -r requirements_versions.txt执行,仍报错
  • 重新安装系统Python和pip:sudo pacman -S python python-pip
  • 尝试不使用虚拟环境或重新创建虚拟环境,执行pip3 install -r requirements_versions.txt、pip3 install -r requirements_versions.txt --pre
  • 单独安装transformers==4.30.2时,出现error: externally-managed-environment错误
  • 尝试yay python-xyz、sudo pacman -S python-pipx、pip install -r requirements.txt --break-system-packages
  • 卸载并重新安装python、pip和rust

系统信息

  • 系统:Arch Linux
  • 内核版本:6.9.3-arch1-1
  • CPU:Intel i7-10700K (16) @ 5.100GHz
  • GPU:NVIDIA GeForce RTX 3060
  • pip版本:24.0(对应Python 3.12)

内容的提问来源于stack exchange,提问作者adam

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 16:45:58