Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix(dependencies): remove unnecessary pypandoc and struct-eqtable packages;fix matplotlib>=3.9.1 not support Windows system without compilation environment.

myhloli9ececf3a1ec5
diff --git a/requirements.txt b/requirements.txt
index a8efe0c1..ff17e4b6 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,6 +8,4 @@ fast-langdetect==0.2.0
wordninja>=2.0.0
scikit-learn>=1.0.2
pdfminer.six==20231228
-pypandoc
-struct-eqtable==0.1.0
# The requirements.txt must ensure that only necessary external dependencies are introduced. If there are new dependencies to add, please contact the project administrator.
diff --git a/setup.py b/setup.py
index 77981d36..6d140fab 100644
--- a/setup.py
+++ b/setup.py
@@ -36,12 +36,14 @@ if __name__ == '__main__':
"paddlepaddle==3.0.0b1;platform_system=='Linux'",
"paddlepaddle==2.6.1;platform_system=='Windows' or platform_system=='Darwin'",
],
- "full": ["unimernet==0.1.6",
- "matplotlib",
- "ultralytics",
- "paddleocr==2.7.3",
- "paddlepaddle==3.0.0b1;platform_system=='Linux'",
- "paddlepaddle==2.6.1;platform_system=='Windows' or platform_system=='Darwin'",
+ "full": ["unimernet==0.1.6", # 0.1.6版本大幅裁剪依赖包范围,推荐使用此版本
+ "matplotlib<=3.9.0", # 3.9.1及之后不提供windows的预编译包,避免一些没有编译环境的windows设备安装失败
+ "ultralytics", # yolov8,公式检测
+ "paddleocr==2.7.3", # 2.8.0及2.8.1版本与detectron2有冲突,需锁定2.7.3
+ "paddlepaddle==3.0.0b1;platform_system=='Linux'", # 解决linux的段异常问题
+ "paddlepaddle==2.6.1;platform_system=='Windows' or platform_system=='Darwin'", # windows版本3.0.0b1效率下降,需锁定2.6.1
+ "pypandoc", # 表格解析latex转html
+ "struct-eqtable==0.1.0", # 表格解析
"detectron2"
],
},