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

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -13
requirements.txt CHANGED
@@ -1,30 +1,31 @@
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
@@ -34,7 +35,7 @@ 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
 
1
+ # --- 1. 核心数学与基础库 (防止 torch 和 sympy 冲突) ---
2
+ mpmath==1.3.0
3
+ sympy==1.13.3
4
+ pyparsing==3.1.2
5
+ # 针对 gradio 触发的 sse-starlette 回溯
6
+ sse-starlette==2.1.3
7
+ uvicorn>=0.14.0
8
+ websockets>=10.4
9
+
10
+ # --- 2. 之前已封堵的黑洞 (继续保持锁定) ---
11
  flatbuffers==24.3.25
12
  authlib==1.3.2
 
 
13
  tifffile==2024.12.12
 
14
  scikit-image==0.25.0
 
 
15
 
16
+ # --- 3. PyTorch 环境 (CPU 优先) ---
17
  --extra-index-url https://download.pytorch.org/whl/cpu
18
  torch
19
  torchvision
20
  av==12.3.0
21
 
22
+ # --- 4. MinerU 核心组件 ---
 
23
  onnxruntime>=1.18.0
24
  magika>=0.5.1
 
25
  magic-pdf[full]
 
26
  mineru[all]
27
 
28
+ # --- 5. 功能性依赖 ---
29
  beautifulsoup4
30
  pillow
31
  playwright
 
35
  fast-langdetect>=0.2.3
36
  ffmpy>=0.5.0
37
 
38
+ # --- 6. 谷歌相关 ---
39
  google-api-python-client==2.150.0
40
  google-auth-httplib2==0.2.0
41
  httplib2==0.22.0