Przeglądaj źródła

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

myhloli 1 rok temu
rodzic
commit
9ececf3a1e
2 zmienionych plików z 8 dodań i 8 usunięć
  1. 0 2
      requirements.txt
  2. 8 6
      setup.py

+ 0 - 2
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.

+ 8 - 6
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"
                      ],
         },