gpt_academic icon indicating copy to clipboard operation
gpt_academic copied to clipboard

[Bug]: 一键安装包安装rich不同版本,显示resolution-too-deep

Open yanshunlong opened this issue 5 months ago • 5 comments

Installation Method | 安装方法与平台

OneKeyInstall (一键安装脚本-windows)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

自动运行后,在不停的运行这些代码,最后显示 × Dependency resolution exceeded maximum depth ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.

hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'.

Link: https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors Command '"D:\gpt_academic\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://mirrors.aliyun.com/pypi/simple/' failed with exit status code '1'. Exiting...

Screen Shot | 有帮助的截图

自动运行后,在不停的运行这些代码 Collecting rich (from -r requirements.txt (line 35)) Using cached https://mirrors.aliyun.com/pypi/packages/ea/bc/5ca0a05823fcdf00c64b44448122131319bc0bf53ec9ce715dc960560df2/rich-13.0.1-py3-none-any.whl (238 kB) Using cached https://mirrors.aliyun.com/pypi/packages/92/37/2732511fdd5c6e037af9e92b87dbb50049c02fd3a8c070bc75eed6c798b3/rich-13.0.0-py3-none-any.whl (238 kB) Using cached https://mirrors.aliyun.com/pypi/packages/32/60/81ac2e7d1e3b861ab478a72e3b20fc91c4302acd2274822e493758941829/rich-12.6.0-py3-none-any.whl (237 kB) Using cached https://mirrors.aliyun.com/pypi/packages/f6/39/4cb526e0d505464376e3c47a812df6e6638363ebe66e6a63618831fe47ad/rich-12.5.1-py3-none-any.whl (235 kB) Using cached https://mirrors.aliyun.com/pypi/packages/0b/78/fd144401a7849947ef5852e00686e56312cc95aa3a4866f5c8a00a459a4e/rich-12.5.0-py3-none-any.whl (235 kB) error: resolution-too-deep

× Dependency resolution exceeded maximum depth ╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.

hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'.

Link: https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors Command '"D:\gpt_academic\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://mirrors.aliyun.com/pypi/simple/' failed with exit status code '1'. Exiting...

Image

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

yanshunlong avatar Jul 22 '25 21:07 yanshunlong

Image

yanshunlong avatar Jul 22 '25 21:07 yanshunlong

谢谢您的帮助,回头我试一试,感激不尽,谢谢您 ---- 回复的原邮件 ---- @.>发送日期2025年7月24日 @.>@.>, @.>主题Re: [binary-husky/gpt_academic] [Bug]: 一键安装包安装rich不同版本,显示resolution-too-deep (Issue #2214) HuayongHu left a comment (binary-husky/gpt_academic#2214) 你可以尝试一下把这个requirements.txt拆分成三个文件分别执行安装,我在linux下也遇到了这个情况,拆成三个再执行python -m pip install -r requirements1.txt、python -m pip install -r requirements2.txt、python -m pip install -r requirements3.txt然后没有报错地安装成功了。 我拆的三个文件分别是 requirements1.txt内容如下: https://public.agent-matrix.com/publish/gradio-3.32.15-py3-none-any.whl fastapi==0.110 gradio-client pypdf2 httpx zhipuai==2.0.1 tiktoken>=0.3.3 requests[socks] pydantic==2.9.2 protobuf>=3.20 scipdf_parser>=0.52 anthropic>=0.18.1 python-markdown-math pymdown-extensions>=10.14 websocket-client beautifulsoup4 prompt_toolkit latex2mathml requirements2.txt内容如下: python-docx mdtex2html dashscope pyautogen colorama Markdown pygments edge-tts>=7.0.0 pymupdf openai rjsmin loguru arxiv numpy rich requirements3.txt内容如下: transformers>=4.27.1 spacy>=3.7.4 llama-index-core==0.10.68 llama-index-legacy==0.9.48 llama-index-readers-file==0.1.33 llama-index-readers-llama-parse==0.1.6 llama-index-embeddings-azure-openai==0.1.10 llama-index-embeddings-openai==0.1.10 llama-parse==0.4.9 mdit-py-plugins>=0.3.3 linkify-it-py==2.0.3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

yanshunlong avatar Jul 24 '25 16:07 yanshunlong

#2212 如果你排查到循环的开始和这个ISSUE一致,可以使用我在这个ISSUE中的解决方法暂时解决该问题 指定pyautogen==0.2.17可以解决冲突

foundnom avatar Jul 25 '25 18:07 foundnom

#2212 如果你排查到循环的开始和这个ISSUE一致,可以使用我在这个ISSUE中的解决方法暂时解决该问题 指定pyautogen==0.2.17可以解决冲突

遇到了相似的问题(aiohappyeyeballs包),这个方法确实可以解决。感谢!

Image

beimu1009 avatar Jul 26 '25 16:07 beimu1009

我也遇到这个 Bug 了,感谢 @foundnom 提供方案,亲测有效!

Image

Jacksbariok avatar Aug 13 '25 09:08 Jacksbariok