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

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +11 -11
requirements.txt CHANGED
@@ -1,26 +1,26 @@
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
 
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]