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

Mac Studio M2下Stability Matrix安装ComfyUi时virtualenv报错求助

Mac Studio M2下Stability Matrix安装ComfyUI遇virtualenv找不到问题的解决方法

问题详情

  • 设备:Mac Studio M2
  • 操作背景:不会使用命令行,安装ComfyUI失败后改用Stability Matrix,执行「添加包」时触发错误
  • 错误提示:

Error: StabilityMatrix.Core.Exceptions.ProcessException: Process exited with code 1. {StdOut = Looking in indexes: https://download.pytorch.org/whl/cpu/
, StdErr = ERROR: Could not find a version that satisfies the requirement virtualenv (from versions: none)
ERROR: No matching distribution found for virtualenv
}

  • 已尝试操作:手动运行命令python3 -m pip install --user virtualenv,系统返回virtualenv已安装:
Looking in indexes: https://download.pytorch.org/whl/cpu/
Requirement already satisfied: virtualenv in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (20.27.0)
Requirement already satisfied: distlib<1,>=0.3.7 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from virtualenv) (0.3.9)
Requirement already satisfied: filelock<4,>=3.12.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from virtualenv) (3.13.1)
Requirement already satisfied: platformdirs<5,>=3.9.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from virtualenv) (4.3.6)

但问题仍未解决,需要成功使用ComfyUI。

解决步骤

1. 修正pip索引源

错误根源是pip只从PyTorch的CPU镜像源查找包,而这个源没有virtualenv。执行以下步骤改回官方源:

  • 打开「终端」(Launchpad→其他→终端)
  • 复制粘贴下面的命令,按回车:
    python3 -m pip config set global.index-url https://pypi.org/simple/
    

2. 确认Stability Matrix的Python路径

  • 打开Stability Matrix,点击右上角齿轮图标进入设置
  • 找到「Python路径」选项,检查是否指向你安装virtualenv的Python版本(路径应该是/Library/Frameworks/Python.framework/Versions/3.12/bin/python3)
  • 如果不是,点击「浏览」手动选择这个路径

3. 重新尝试安装

  • 关闭Stability Matrix后重新打开
  • 再次执行「添加包」,选择ComfyUI进行安装

备选方案:使用Stability Matrix内置Python

如果上面的步骤都不行,直接让软件自己管理环境:

  • 在Stability Matrix设置里,勾选「使用内置Python」选项
  • 重启软件后重新安装ComfyUI,软件会自动下载适配的Python和所有依赖包

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.16 20:10:08