Skip to content

Windows版无法启动 #241

Description

@ljjdev

安装了
paddlepaddle-gpu==3.3.0

运行启动命令后,闪了一个命令提示匡就没了

版本 Windows 11 专业版
版本号 25H2
安装日期 ‎2025/‎5/‎10
操作系统版本 26200.7840
体验 Windows 功能体验包 1000.26100.291.0

PS C:\Users\monog> PPOCRLabel --lang ch
PS C:\Users\monog> python D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py --lang ch
信息: 用提供的模式无法找到文件。
D:\Python313\Lib\site-packages\paddle\utils\cpp_extension\extension_utils.py:712: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
  warnings.warn(warning_message)
D:\Python313\Lib\site-packages\requests\__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.1.0)/charset_normalizer (3.4.6) doesn't match a supported version!
  warnings.warn(
Checking connectivity to the model hosters, this may take a while. To bypass this check, set `PADDLE_PDX_DISABLE_MODEL_SOURCE_CHECK` to `True`.
libpng warning: tRNS: invalid with alpha channel
libpng warning: tRNS: invalid with alpha channel
libpng warning: tRNS: invalid with alpha channel
libpng warning: tRNS: invalid with alpha channel
libpng warning: tRNS: invalid with alpha channel
D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py:212: UserWarning: `lang` and `ocr_version` will be ignored when model names or model directories are not `None`.
  self.ocr = PaddleOCR(**params)
Creating model: ('PP-OCRv5_mobile_det', None)
Model files already exist. Using cached files. To redownload, please delete the directory manually: `C:\Users\monog\.paddlex\official_models\PP-OCRv5_mobile_det`.
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0316 20:56:29.491299 44832 gpu_resources.cc:116] Please NOTE: device: 0, GPU Compute Capability: 8.9, Driver API Version: 13.1, Runtime API Version: 12.6
Creating model: ('PP-OCRv5_mobile_rec', None)
Model files already exist. Using cached files. To redownload, please delete the directory manually: `C:\Users\monog\.paddlex\official_models\PP-OCRv5_mobile_rec`.
Model files already exist. Using cached files. To redownload, please delete the directory manually: `C:\Users\monog\.paddlex\official_models\PP-OCRv5_mobile_rec`.
Model files already exist. Using cached files. To redownload, please delete the directory manually: `C:\Users\monog\.paddlex\official_models\PP-OCRv5_mobile_det`.

Traceback (most recent call last):
  File "D:\Python313\Lib\site-packages\paddleocr\_pipelines\base.py", line 105, in _create_paddlex_pipeline
    return create_pipeline(config=self._merged_paddlex_config, **kwargs)
  File "D:\Python313\Lib\site-packages\paddlex\inference\pipelines\__init__.py", line 168, in create_pipeline
    pipeline = BasePipeline.get(pipeline_name)(
        config=config,
    ...<5 lines>...
        **kwargs,
    )
  File "D:\Python313\Lib\site-packages\paddlex\utils\deps.py", line 207, in _wrapper
    require_extra(extra, obj_name=pipeline_name, alt=alt)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Python313\Lib\site-packages\paddlex\utils\deps.py", line 200, in require_extra
    raise DependencyError(msg)
paddlex.utils.deps.DependencyError: `PP-StructureV3` requires additional dependencies. To install them, run `pip install "paddlex[ocr]==<PADDLEX_VERSION>"` if you’re installing `paddlex` from an index, or `pip install -e "/path/to/PaddleX[ocr]"` if you’re installing `paddlex` locally.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 3852, in <module>
    sys.exit(main())
             ~~~~^^
  File "D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 3847, in main
    app, _win = get_main_app(sys.argv)
                ~~~~~~~~~~~~^^^^^^^^^^
  File "D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 3828, in get_main_app
    win = MainWindow(
        lang=args.lang,
    ...<9 lines>...
        selected_shape_color=args.selected_shape_color,
    )
  File "D:\Python313\Lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 223, in __init__
    self.table_ocr = PPStructureV3(
                     ~~~~~~~~~~~~~^
        use_doc_orientation_classify=False,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
        device=self.gpu,
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "D:\Python313\Lib\site-packages\paddleocr\_pipelines\pp_structurev3.py", line 139, in __init__
    super().__init__(**kwargs)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "D:\Python313\Lib\site-packages\paddleocr\_pipelines\base.py", line 67, in __init__
    self.paddlex_pipeline = self._create_paddlex_pipeline()
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "D:\Python313\Lib\site-packages\paddleocr\_pipelines\base.py", line 107, in _create_paddlex_pipeline
    raise RuntimeError(
        "A dependency error occurred during pipeline creation. Please refer to the installation documentation to ensure all required dependencies are installed."
    ) from e
RuntimeError: A dependency error occurred during pipeline creation. Please refer to the installation documentation to ensure all required dependencies are installed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions