Files
Bvicii 56165f7da6 Add Python 3.13 and 3.14 support (#17826)
* Add Python 3.13 support

- Replace distutils imports with sysconfig/shutil/logging in ultra-infer setup
- Replace pkg_resources with importlib.metadata in ultra-infer __init__
- Remove np.unicode_ usage (removed in NumPy 2.0, crashes on Python 3.13+)
- Remove dead inspect.getargspec fallback (removed in 3.11)
- Add python_requires=">=3.8" and Python 3.13 classifier to setup.py
- Update Python version badges and docs from 3.8~3.12 to 3.8~3.13
- Pin PaddlePaddle to ==3.3.0 in install docs (first version with cp313 wheels)

* CI: test Python bounds (3.8, 3.13) and revert HPI docs

- CI matrix: test lower bound (3.8) and upper bound (3.13) per reviewer
  suggestion, with version-conditional PaddlePaddle install (3.2.0 for
  cp38, 3.3.0 for cp313)
- Revert HPI docs to Python 3.8-3.12 since the package is separately
  compiled and does not yet support 3.13

* CI: add Python 3.9 to test matrix

Test 3.9 as the lower bound for PaddlePaddle 3.3.0 (cp39-cp313).

* Revert PaddlePaddle version bumps in docs due to 3.3.0 CPU inference bug

Keep Python version range updates (3.8-3.13) but revert paddlepaddle
install versions to their originals since 3.3.0 CPU native inference
has a bug for paddleocr models.

* Bump langchain-paddleocr version to 0.1.1 for Python 3.13+ support

---------

Co-authored-by: Lin Manhui <mhlin425@whu.edu.cn>
2026-03-25 11:04:53 +08:00
..
2025-07-09 21:28:02 +08:00

PP-Structure Upgrade Considerations

Since its launch in 2021, the PP-Structure series models have undergone three generations of updates and iterations. Currently, the latest version is the third generation (PP-StructureV3). All the code and documentation on this page are based on the second generation (PP-StructureV2). This directory will be removed at an appropriate time in the future, and maintenance for the second generation will be discontinued.

The third generation, PP-StructureV3, offers more powerful document analysis capabilities, and we strongly recommend users to use this version via the integrated wheel package. For a detailed introduction to PP-StructureV3, please refer to the PP-StructureV3 Introduction Document; for specific usage instructions, please see the PP-StructureV3 Usage Guide.

In addition, we will discontinue maintenance of the KIE capability provided in the second generation. We recommend that you use the PP-ChatOCRv4 model in PaddleOCR 3.x, which offers more accurate key information extraction. For a detailed introduction to PP-ChatOCRv4, please refer to the PP-ChatOCRv4 Introduction Document; for specific usage instructions, please see the PP-ChatOCRv4 Usage Document.

PP-Structure 升级事项

PP-Structure 系列模型自 2021 年推出以来,已经历三代版本的更新迭代。目前,最新版本为第三代(PP-StructureV3)。本页面的所有代码与文档均基于第二代(PP-StructureV2),后续将在适当时机删除本目录,并停止对第二代的维护。

第三代 PP-StructureV3 提供了更为强大的文档解析能力,我们更推荐用户通过集成 wheel 包来使用该版本。关于 PP-StructureV3 的详细介绍,请参考PP-StructureV3 介绍文档;具体的使用方法可参见PP-StructureV3 使用文档

另外,在第二代提供的 KIE 能力,我们也将停止维护,推荐大家使用 PaddleOCR 3.x 版本的 PP-ChatOCRv4 模型方案,关键信息抽取更准确。关于 PP-ChatOCRv4 的详细介绍,请参考PP-ChatOCRv4 介绍文档;具体的使用方法可参见PP-ChatOCRv4 使用文档