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

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +19 -15
requirements.txt CHANGED
@@ -1,36 +1,40 @@
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
 
 
1
+ # --- 1. 强制钉死容易引起回溯的底层库 (核心补救措施) ---
 
2
  flatbuffers==24.3.25
3
  authlib==1.3.2
4
  pyparsing==3.1.2
5
+ # 针对本次报错,强制锁定 tifffile 阻止其无限回溯
6
+ tifffile==2024.12.12
7
+ # 提前锁定 scikit-image,防止它带偏版本
8
+ scikit-image==0.25.0
9
  uvicorn>=0.14.0
10
  websockets>=10.4
11
 
12
+ # --- 2. PyTorch 环境 (CPU 优先) ---
 
13
  --extra-index-url https://download.pytorch.org/whl/cpu
14
  torch
15
  torchvision
16
  av==12.3.0
17
 
18
+ # --- 3. MinerU 核心组件 ---
19
+ # 给 onnxruntime 和 magika 明确的版本,减少冲突可能性
20
+ onnxruntime>=1.18.0
21
  magika>=0.5.1
22
+ # 关键:先安装 magic-pdf
23
+ magic-pdf[full]
24
+ # 关键:再安装 mineru
25
+ mineru[all]
26
+
27
+ # --- 4. 功能性依赖 ---
28
  beautifulsoup4
29
  pillow
30
  playwright
31
  openai
32
  google-generativeai
 
 
 
 
 
 
 
33
  colorlog>=6.9.0
34
  fast-langdetect>=0.2.3
35
  ffmpy>=0.5.0
36
+
37
+ # --- 5. 谷歌相关 (仅保留必要配置) ---
38
  google-api-python-client==2.150.0
39
+ google-auth-httplib2==0.2.0
40
+ httplib2==0.22.0