snym04 commited on
Commit
2337cdb
·
verified ·
1 Parent(s): 910dd6b

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +24 -14
requirements.txt CHANGED
@@ -1,26 +1,36 @@
1
- # 1. 强制最优先锁定关键底层库,防止回溯
2
- httplib2==0.22.0
3
- google-api-python-client==2.150.0
4
- google-auth-httplib2==0.2.0
5
- pyparsing>=3.0.9
 
 
6
 
7
- # 2. 指定 CPU 版本的 PyTorch 索引
 
8
  --extra-index-url https://download.pytorch.org/whl/cpu
9
  torch
10
  torchvision
 
11
 
12
- # 3. 功能依赖 (移除不必要的固,让其自动适配)
13
- colorlog>=6.9.0
14
- fast-langdetect>=0.2.3
15
- ffmpy>=0.5.0
16
  beautifulsoup4
17
  pillow
18
  playwright
19
  openai
20
  google-generativeai
21
 
22
- # 4. MinerU 核心
23
- # 显式锁定 av,它是构失败高发区
24
- av==12.3.0
25
  magic-pdf[full]
26
- mineru[all]
 
 
 
 
 
 
 
 
 
1
+ # --- 1. 强制锁定引起回溯的底层库 (破局关键) ---
2
+ # 锁定 flatbuffers 和 authlib 阻止 Pip 无限回溯
3
+ flatbuffers==24.3.25
4
+ authlib==1.3.2
5
+ pyparsing==3.1.2
6
+ uvicorn>=0.14.0
7
+ websockets>=10.4
8
 
9
+ # --- 2. 基础依赖与 MinerU 核心 ---
10
+ # 显式指定 CPU 版本索引以加速
11
  --extra-index-url https://download.pytorch.org/whl/cpu
12
  torch
13
  torchvision
14
+ av==12.3.0
15
 
16
+ # --- 3. 关键组件 (一个相对稳定的版本范围) ---
17
+ onnxruntime>=1.17.0
18
+ magika>=0.5.1
 
19
  beautifulsoup4
20
  pillow
21
  playwright
22
  openai
23
  google-generativeai
24
 
25
+ # --- 4. MinerU 及其子包 ---
26
+ # 建议先安装核心包,减少 [all] 带来依赖爆炸
 
27
  magic-pdf[full]
28
+ mineru[all]
29
+
30
+ # --- 5. 其他辅助 ---
31
+ colorlog>=6.9.0
32
+ fast-langdetect>=0.2.3
33
+ ffmpy>=0.5.0
34
+ httplib2==0.22.0
35
+ google-api-python-client==2.150.0
36
+ google-auth-httplib2==0.2.0