[Bug]: protobuf版本的依赖库冲突
Installation Method | 安装方法与平台
OneKeyInstall (一键安装脚本-windows)
Version | 版本
Others | 非最新版
OS | 操作系统
Windows
Describe the bug | 简述
requirements.txt 文件中 protobuf==3.20 和 autogen-core 0.6.4 需要的 protobuf~=5.29.3 之间存在冲突。若直接修改protobuf~=5.29.3,则会导致新的问题,即ResolutionTooDeep: 200000,表明依赖解析器在尝试解决依赖关系时达到了最大轮数限制。
Screen Shot | 有帮助的截图
INFO: pip is looking at multiple versions of autogen-core to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install autogen-agentchat and protobuf==3.20 because these package versions have conflicting dependencies.
The conflict is caused by: The user requested protobuf==3.20 autogen-core 0.6.4 depends on protobuf~=5.29.3
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts Command '"D:\gpt_academic-master\GPTAC\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic-master\GPTAC\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://pypi.org/simple/' failed with exit status code '1'. Exiting...
Done! 请按任意键继续. . .
ERROR: Exception: Traceback (most recent call last): File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_internal\cli\base_command.py", line 106, in _run_wrapper status = _inner_run() File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_internal\cli\base_command.py", line 97, in _inner_run return self.run(options, args) File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper return func(self, options, args) File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_internal\commands\install.py", line 386, in run requirement_set = resolver.resolve( File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve result = self._result = resolver.resolve( File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 457, in resolve raise ResolutionTooDeep(max_rounds) pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 200000 Command '"D:\gpt_academic-master\GPTAC\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic-master\GPTAC\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://mirrors.aliyun.com/pypi/simple/' failed with exit status code '2'. Exiting...
Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
No response
指定pyautogen==0.2.17可以解决冲突
指定pyautogen==0.2.17可以解决冲突
确实可以解决这个冲突,谢谢