From 61fab96eaec375d78d259d36b3a5ccbd1a6470ee Mon Sep 17 00:00:00 2001 From: myhloli Date: Fri, 12 Jul 2024 19:57:02 +0800 Subject: [PATCH] fix(setup): specify paddleocr version to fix compatibility issue --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index f29fa78b..4cfcde74 100644 --- a/setup.py +++ b/setup.py @@ -32,9 +32,9 @@ def parse_requirements(filename): }, install_requires=parse_requirements('requirements.txt'), # 项目依赖的第三方库 extras_require={ - "gpu": ["paddleocr", "paddlepaddle-gpu"], - "cpu": ["paddleocr", "paddlepaddle"], - "full-cpu": ["unimernet", "matplotlib", "ultralytics", "paddleocr", "paddlepaddle"], + "gpu": ["paddleocr==2.7.3", "paddlepaddle-gpu"], + "cpu": ["paddleocr==2.7.3", "paddlepaddle"], + "full-cpu": ["unimernet", "matplotlib", "ultralytics", "paddleocr==2.7.3", "paddlepaddle"], }, description="A practical tool for converting PDF to Markdown", # 简短描述 long_description=long_description, # 详细描述