snym04 commited on
Commit
030a78a
·
verified ·
1 Parent(s): e13cd0f

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +21 -11
requirements.txt CHANGED
@@ -1,16 +1,26 @@
1
- # 基础依赖锁定
2
- colorlog==6.9.0
3
- fast-langdetect==0.2.3
4
- ffmpy==0.5.0
5
 
6
- # 功能依赖
7
- openai
8
- pillow
9
- google-generativeai
10
  beautifulsoup4
 
11
  playwright
12
 
13
- # MinerU 核心
 
 
 
 
 
 
 
 
14
  mineru[all]
15
- # 显式锁定 av 版本,避免它去尝试编译不兼容的最新版
16
- av==12.3.0
 
 
1
+ # --- 1. 预设核心路径 (针对 CPU 环境) ---
2
+ --extra-index-url https://download.pytorch.org/whl/cpu
3
+ torch
4
+ torchvision
5
 
6
+ # --- 2. 基础依赖 (移除不必要的版本锁定以减少冲突) ---
7
+ colorlog>=6.9.0
8
+ fast-langdetect>=0.2.3
9
+ ffmpy>=0.5.0
10
  beautifulsoup4
11
+ pillow
12
  playwright
13
 
14
+ # --- 3. 大模型 SDK ---
15
+ openai
16
+ google-generativeai
17
+
18
+ # --- 4. MinerU 核心 (显式指定) ---
19
+ # 注意:mineru[all] 会拉取大量多模态依赖,容易造成冲突
20
+ # 强制锁定 av 版本避坑
21
+ av==12.3.0
22
+ magic-pdf[full]
23
  mineru[all]
24
+
25
+ # --- 5. 解决 pyparsing 导致的递归太深问题 ---
26
+ pyparsing>=3.0.9