发布

  • fix: `pytesseract>=0.3.12` installation error while installing `pdf` extra (#3522)

    frostbyte_neo 发布于 2024-08-14 21:15:40 +00:00

    Closes #3521.

    This PR resolves an installation error with pytesseract>=0.3.12 that
    occurred during pip install unstructured[pdf]==0.15.3.

    Testing

    Run following command in main branch and this PR

    pip uninstall -y pytesseract && pip install ".[pdf]"
    

    Results

    • main branch
    INFO: pip is looking at multiple versions of unstructured[pdf] to determine which version is compatible with other requirements. This could take a while.
    ERROR: Could not find a version that satisfies the requirement pytesseract>=0.3.12; extra == "pdf" (from unstructured[pdf]) (from versions: 0.1, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.2, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10)
    ERROR: No matching distribution found for pytesseract>=0.3.12; extra == "pdf"
    
    • this PR

    pytesseract-0.3.13 should be installed successfully.

    下载附件