Open tiejiang8 opened 1 year ago
python main.py时报错: │ D:\miniconda3\envs\langcn\lib\site-packages\unstructured\partition\pdf.py:5 in │ │ │ │ 2 from io import StringIO │ │ 3 from typing import BinaryIO, List, Optional, cast │ │ 4 │ │ ❱ 5 from pdfminer.pdfpage import PDFPage, PDFTextExtractionNotAllowed │ │ 6 from pdfminer.utils import open_filename │ │ 7 │ │ 8 from unstructured.documents.elements import Element, ElementMetadata, PageBreak │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ModuleNotFoundError: No module named 'pdfminer'
库文件调整为 unstructured[local-inference] 不报错了
python main.py时报错: │ D:\miniconda3\envs\langcn\lib\site-packages\unstructured\partition\pdf.py:5 in │
│ │
│ 2 from io import StringIO │
│ 3 from typing import BinaryIO, List, Optional, cast │
│ 4 │
│ ❱ 5 from pdfminer.pdfpage import PDFPage, PDFTextExtractionNotAllowed │
│ 6 from pdfminer.utils import open_filename │
│ 7 │
│ 8 from unstructured.documents.elements import Element, ElementMetadata, PageBreak │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'pdfminer'
库文件调整为 unstructured[local-inference] 不报错了