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
错误信息
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts.
mediapipe 0.10.11 requires protobuf<4,>=3.11, but you have protobuf 5.26.1 which is incompatible.
grpcio-tools 1.69.0 requires protobuf<6.0dev,>=5.26.1, but you have protobuf 3.20.3 which is incompatible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
问题背景
我在 Windows 10/11 上安装 ComfyUI Reactor 插件 时,运行以下命令安装依赖:
E:\py\python -m pip install -r "D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\requirements.txt"
但是安装过程中,protobuf 版本发生冲突,导致 mediapipe 和 grpcio-tools 依赖不兼容,出现如下错误:
错误信息
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts.
mediapipe 0.10.11 requires protobuf<4,>=3.11, but you have protobuf 5.26.1 which is incompatible.
grpcio-tools 1.69.0 requires protobuf<6.0dev,>=5.26.1, but you have protobuf 3.20.3 which is incompatible.
我的 Python 和 pip 版本
E:\py\python --version
Python 3.10
E:\py\python -m pip --version
pip 25.0 from E:\py\lib\site-packages\pip (python 3.10)
我尝试过的解决方案
尝试卸载并重新安装 protobuf
E:\py\python -m pip uninstall protobuf -y
E:\py\python -m pip install protobuf==3.20.3
结果:
mediapipe 兼容,但 grpcio-tools 仍然报错。
尝试使用 protobuf>=5.26.1
E:\py\python -m pip install protobuf==5.26.1
结果:
grpcio-tools 兼容,但 mediapipe 报错。
尝试手动安装 mediapipe 和 grpcio-tools 旧版本
E:\py\python -m pip install grpcio-tools==1.48.2
E:\py\python -m pip install mediapipe==0.9.0
结果:
依然有 protobuf 版本冲突。
我的问题
如何正确安装 ComfyUI Reactor 插件所需的依赖,避免 protobuf 版本冲突?
是否有兼容 mediapipe 和 grpcio-tools 的 protobuf 版本?
是否需要修改 requirements.txt?
还有其他更好的解决方案吗?
谢谢大家的帮助!🙏
Beta Was this translation helpful? Give feedback.
All reactions