[问题反馈]环境配置问题
提交前检查
- 我已在 Issues 中搜索,未找到相同问题
- 我已使用仓库最新版(或
main分支)进行复现
问题类型
依赖/环境问题
位置(章节/文件路径)
all-in-rag\docs\chapter1\02_preparation.md
问题描述
问题1: Collecting idna<4,>=2.5 (from requests>=2.28.0->-r requirements.txt (line 31)) Using cached idna-3.18-py3-none-any.whl (65 kB) Using cached idna-3.17-py3-none-any.whl (65 kB) Using cached idna-3.16-py3-none-any.whl (74 kB) Using cached idna-3.15-py3-none-any.whl (72 kB) Using cached idna-3.14-py3-none-any.whl (72 kB) Using cached idna-3.13-py3-none-any.whl (68 kB) Using cached idna-3.12-py3-none-any.whl (68 kB) Using cached idna-3.11-py3-none-any.whl (71 kB) Using cached idna-3.10-py3-none-any.whl (70 kB) Using cached idna-3.9-py3-none-any.whl (71 kB) Using cached idna-3.8-py3-none-any.whl (66 kB) Using cached idna-3.7-py3-none-any.whl (66 kB) Using cached idna-3.6-py3-none-any.whl (61 kB) Using cached idna-3.5-py3-none-any.whl (61 kB) Using cached idna-3.4-py3-none-any.whl (61 kB) Using cached idna-3.3-py3-none-any.whl (61 kB) Using cached idna-3.2-py3-none-any.whl (59 kB) Using cached idna-3.1-py3-none-any.whl (58 kB) Using cached idna-3.0-py2.py3-none-any.whl (58 kB) Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Using cached idna-2.9-py2.py3-none-any.whl (58 kB) Using cached idna-2.8-py2.py3-none-any.whl (58 kB) Collecting httpx-sse<1.0.0,>=0.4.0 (from langchain-community==0.3.27->-r requirements.txt (line 16)) Using cached httpx_sse-0.4.2-py3-none-any.whl (9.0 kB) Using cached httpx_sse-0.4.1-py3-none-any.whl (8.1 kB) Using cached httpx_sse-0.4.0-py3-none-any.whl (7.8 kB) Collecting httpcore>=1.0.9 (from unstructured-client==0.41.0->-r requirements.txt (line 40)) Using cached httpcore-1.0.9-py3-none-any.whl (78 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
解决:
使用uv安装
pip install uv
问题2:
(agent) all-in-rag\code>uv pip install -r requirements.txt
Using Python 3.13.5 environment at: C:\programming_software\Anaconda_2025_6\envs\agent
Resolved 244 packages in 24.23s
Built langdetect==1.0.9
Built qrcode-terminal==0.8
Built antlr4-python3-runtime==4.9.3 × Failed to build chroma-hnswlib==0.7.3
├─▶ The build backend returned an error
╰─▶ Call to setuptools.build_meta.build_wheel failed (exit code: 1)
[stdout]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
[stderr]
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
hint: This usually indicates a problem with the package or the build environment.
help: chroma-hnswlib (v0.7.3) was included because chromadb (v0.4.14) depends on chroma-hnswlib
解决:
python版本降级到Python 3.11
复现步骤
No response
最小可复现代码/命令
环境信息
No response
日志/报错信息与截图
Source: datawhalechina/all-in-rag