[PaddlePaddle/PaddleOCR]安装paddleocr时出现错误:PyMuPDF无法安装

2024-07-08 373 views
7

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:Windows 11 22H2
  • 版本号/Version:Paddle:paddlepaddle-gpu==2.3.2 PaddleOCR:2.6.0.2 问题相关组件/Related components:(安装过程出现错误)
  • 运行指令/Command Code:pip install paddleocr>=2.0.1
  • 完整报错/Complete Error Message:

    
    pip install "paddleocr>=2.0.1" -i https://pypi.tuna.tsinghua.edu.cn/simple/
    Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
    Collecting paddleocr>=2.0.1
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f5/14/3425531254a8ef8f6282634d4f5f3f0437bfc9e4a8d971e52cdcaae9d805/paddleocr-2.6.0.2-py3-none-any.whl (419 kB)
    Collecting attrdict
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ef/97/28fe7e68bc7adfce67d4339756e85e9fcf3c6fd7f0c0781695352b70472c/attrdict-2.0.1-py2.py3-none-any.whl (9.9 kB)
    Collecting premailer
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b1/07/4e8d94f94c7d41ca5ddf8a9695ad87b888104e2fd41a35546c1dc9ca74ac/premailer-3.10.0-py2.py3-none-any.whl (19 kB)
    Requirement already satisfied: opencv-python in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from paddleocr>=2.0.1) (4.6.0.66)
    Collecting rapidfuzz
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/51/71070ffbe53b1caf35519232571f81c82f709dfa22a224b543c018cded77/rapidfuzz-2.11.1-cp310-cp310-win_amd64.whl (992 kB)
    Collecting visualdl
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8a/e5/940426714a10c916466764eaea51ab7e10bd03896c625fcc4524a0855175/visualdl-2.4.1-py3-none-any.whl (4.9 MB)
    Collecting Polygon3
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/26/eea4112be43c8b7345477ad9150d499303494f32fb5951cb0f6e9104045b/Polygon3-3.0.9.1.tar.gz (39 kB)
    Preparing metadata (setup.py) ... done
    Collecting scikit-image
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d4/21/60ee84932bf4b72398769759c9d30d63771967b0f430e28d5c2e7f326acc/scikit_image-0.19.3-cp310-cp310-win_amd64.whl (12.0 MB)
    Collecting cython
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1c/24/e3935e545b128a90146e743212703420287ed35885074a9f36b21f3bb68d/Cython-0.29.32-py2.py3-none-any.whl (986 kB)
    Requirement already satisfied: tqdm in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from paddleocr>=2.0.1) (4.64.1)
    Collecting opencv-contrib-python
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/63/0b/6ef1acbaa21e5245c85a42f9f0ecfaf2e7420b24615a00f0eee170328e6b/opencv_contrib_python-4.6.0.66-cp36-abi3-win_amd64.whl (42.5 MB)
    Collecting openpyxl
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/60/9afac4fd6feee0ac09339de4101ee452ea643d26e9ce44c7708a0023f503/openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
    Collecting PyMuPDF==1.18.7
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5b/43/216e28aa5a1bb0d3a3b9109fda7ce7f504eb2b4e4b4fa56ffcb56d968e35/PyMuPDF-1.18.7.tar.gz (266 kB)
    Preparing metadata (setup.py) ... done
    Requirement already satisfied: lxml in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from paddleocr>=2.0.1) (4.9.1)
    Collecting imgaug
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/b1/af3142c4a85cba6da9f4ebb5ff4e21e2616309552caca5e8acefe9840622/imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
    Requirement already satisfied: numpy in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from paddleocr>=2.0.1) (1.23.1)
    Collecting shapely
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/88/43/3a8006855fe0ae3deac065843c2f601c542f841b3c92794619d1ab291b4f/Shapely-1.8.5.post1-cp310-cp310-win_amd64.whl (1.3 MB)
    Collecting pyclipper
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/83/88/4ddf31300434fed0951f27f5da651f0a0f9ac9427d96bcc0edb7d60cd9d2/pyclipper-1.3.0.post3-cp310-cp310-win_amd64.whl (94 kB)
    Collecting lmdb
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3f/31/fcdaedcbfdee59fc2a5643ced9c5af59ef54b8b11d8b40f3f420719c2b33/lmdb-1.3.0-cp310-cp310-win_amd64.whl (106 kB)
    Requirement already satisfied: six in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from attrdict->paddleocr>=2.0.1) (1.16.0)
    Collecting imageio
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/5b/521fcf5836cc46672b04e1ec7a94c0869ca6cc6a6e147277f1eb8cbb6886/imageio-2.22.1-py3-none-any.whl (3.4 MB)
    Requirement already satisfied: matplotlib in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from imgaug->paddleocr>=2.0.1) (3.5.2)
    Requirement already satisfied: Pillow in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from imgaug->paddleocr>=2.0.1) (9.2.0)
    Requirement already satisfied: scipy in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from imgaug->paddleocr>=2.0.1) (1.9.0)
    Collecting PyWavelets>=1.1.1
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/35/12/f1a4f72b5d71497e4200e71e253cc747077d8570b55693faaa7b81fb6dff/PyWavelets-1.4.1-cp310-cp310-win_amd64.whl (4.2 MB)
    Collecting tifffile>=2019.7.26
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d2/cb/1ecf9f39113a7ad0529a0441a16982791e7b37a4efdba2f89a687fdf15c9/tifffile-2022.10.10-py3-none-any.whl (210 kB)
    Requirement already satisfied: packaging>=20.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->paddleocr>=2.0.1) (21.3)
    Requirement already satisfied: networkx>=2.2 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->paddleocr>=2.0.1) (2.5.1)
    Collecting et-xmlfile
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/96/c2/3dd434b0108730014f1b96fd286040dc3bcb70066346f7e01ec2ac95865f/et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
    Requirement already satisfied: requests in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from premailer->paddleocr>=2.0.1) (2.28.1)
    Collecting cssutils
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/28/4e/6c6d07b1ab43f7b8b939406b562c652c651a66699b8a01fc6b774cbf69de/cssutils-2.6.0-py3-none-any.whl (399 kB)
    Collecting cssselect
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3b/d4/3b5c17f00cce85b9a1e6f91096e1cc8e8ede2e1be8e96b87ce1ed09e92c5/cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
    Collecting cachetools
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/68/aa/5fc646cae6e997c3adf3b0a7e257cda75cff21fcba15354dffd67789b7bb/cachetools-5.2.0-py3-none-any.whl (9.3 kB)
    Requirement already satisfied: colorama in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from tqdm->paddleocr>=2.0.1) (0.4.5)
    Collecting bce-python-sdk
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/df/80/c49d240690c4c64dc40fc639eb05fb0a017f6d96cded9b345a4d1883b513/bce_python_sdk-0.8.74-py3-none-any.whl (204 kB)
    Collecting Flask-Babel>=1.0.0
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ab/3e/02331179ffab8b79e0383606a028b6a60fb1b4419b84935edd43223406a0/Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB)
    Collecting multiprocess
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/e6/3b9d10a3700782464eb304b6703224428404bac36d14acdb1b2a0046ade6/multiprocess-0.70.13-py310-none-any.whl (133 kB)
    Requirement already satisfied: pandas in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from visualdl->paddleocr>=2.0.1) (1.4.3)
    Requirement already satisfied: protobuf>=3.11.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from visualdl->paddleocr>=2.0.1) (3.20.0)
    Requirement already satisfied: flask>=1.1.1 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from visualdl->paddleocr>=2.0.1) (2.1.3)
    Requirement already satisfied: itsdangerous>=2.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from flask>=1.1.1->visualdl->paddleocr>=2.0.1) (2.1.2)
    Requirement already satisfied: Werkzeug>=2.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from flask>=1.1.1->visualdl->paddleocr>=2.0.1) (2.2.1)
    Requirement already satisfied: Jinja2>=3.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from flask>=1.1.1->visualdl->paddleocr>=2.0.1) (3.1.2)
    Requirement already satisfied: click>=8.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from flask>=1.1.1->visualdl->paddleocr>=2.0.1) (8.1.3)
    Requirement already satisfied: pytz in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from Flask-Babel>=1.0.0->visualdl->paddleocr>=2.0.1) (2022.1)
    Collecting Babel>=2.3
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2e/57/a4177e24f8ed700c037e1eca7620097fdfbb1c9b358601e40169adf6d364/Babel-2.10.3-py3-none-any.whl (9.5 MB)
    Requirement already satisfied: decorator<5,>=4.3 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from networkx>=2.2->scikit-image->paddleocr>=2.0.1) (4.4.2)
    Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from packaging>=20.0->scikit-image->paddleocr>=2.0.1) (3.0.9)
    Collecting pycryptodome>=3.8.0
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/00/07/5a262e3213a9358e2f7caf9080aa8a984f44bf4aee84592dfb965dd34355/pycryptodome-3.15.0-cp35-abi3-win_amd64.whl (1.9 MB)
    Requirement already satisfied: future>=0.6.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from bce-python-sdk->visualdl->paddleocr>=2.0.1) (0.18.2)
    Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->imgaug->paddleocr>=2.0.1) (1.4.4)
    Requirement already satisfied: cycler>=0.10 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->imgaug->paddleocr>=2.0.1) (0.11.0)
    Requirement already satisfied: python-dateutil>=2.7 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->imgaug->paddleocr>=2.0.1) (2.8.2)
    Requirement already satisfied: fonttools>=4.22.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->imgaug->paddleocr>=2.0.1) (4.34.4)
    Collecting dill>=0.3.5.1
    Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/ff/3b1a8f5d59600393506c64fa14d13afdfe6fe79ed65a18d64026fe9f8356/dill-0.3.5.1-py2.py3-none-any.whl (95 kB)
    Requirement already satisfied: certifi>=2017.4.17 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from requests->premailer->paddleocr>=2.0.1) (2022.6.15)
    Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from requests->premailer->paddleocr>=2.0.1) (1.26.11)
    Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from requests->premailer->paddleocr>=2.0.1) (2.1.0)
    Requirement already satisfied: idna<4,>=2.5 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from requests->premailer->paddleocr>=2.0.1) (3.3)
    Requirement already satisfied: MarkupSafe>=2.0 in c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages (from Jinja2>=3.0->flask>=1.1.1->visualdl->paddleocr>=2.0.1) (2.1.1)
    Using legacy 'setup.py install' for PyMuPDF, since package 'wheel' is not installed.
    Using legacy 'setup.py install' for Polygon3, since package 'wheel' is not installed.
    Installing collected packages: PyMuPDF, pyclipper, Polygon3, lmdb, tifffile, shapely, rapidfuzz, PyWavelets, pycryptodome, opencv-contrib-python, imageio, et-xmlfile, dill, cython, cssutils, cssselect, cachetools, Babel, attrdict, scikit-image, premailer, openpyxl, multiprocess, bce-python-sdk, imgaug, Flask-Babel, visualdl, paddleocr
    Attempting uninstall: PyMuPDF
    Found existing installation: PyMuPDF 1.20.2
    Uninstalling PyMuPDF-1.20.2:
      Successfully uninstalled PyMuPDF-1.20.2
    Running setup.py install for PyMuPDF ... error
    error: subprocess-exited-with-error
    
    × Running setup.py install for PyMuPDF did not run successfully.
    │ exit code: 1
    ╰─> [21 lines of output]
      running install
      C:\Users\sersmile\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\fitz
      copying fitz\__init__.py -> build\lib.win-amd64-cpython-310\fitz
      copying fitz\fitz.py -> build\lib.win-amd64-cpython-310\fitz
      copying fitz\utils.py -> build\lib.win-amd64-cpython-310\fitz
      copying fitz\__main__.py -> build\lib.win-amd64-cpython-310\fitz
      running build_ext
      building 'fitz._fitz' extension
      creating build\temp.win-amd64-cpython-310
      creating build\temp.win-amd64-cpython-310\Release
      creating build\temp.win-amd64-cpython-310\Release\fitz
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -I./mupdf/include -I./mupdf/include/mupdf -I./mupdf/thirdparty/freetype/include -IC:\Users\sersmile\AppData\Local\Programs\Python\Python310\include -IC:\Users\sersmile\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /Tc./fitz/fitz_wrap.c /Fobuild\temp.win-amd64-cpython-310\Release\./fitz/fitz_wrap.obj
      fitz_wrap.c
      ./fitz/fitz_wrap.c(2767): fatal error C1083: Cannot open include file: 'fitz.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    Rolling back uninstall of PyMuPDF
    Moving to c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages\fitz\
    from C:\Users\sersmile\AppData\Local\Programs\Python\Python310\Lib\site-packages\~itz
    Moving to c:\users\sersmile\appdata\local\programs\python\python310\lib\site-packages\pymupdf-1.20.2.dist-info\
    from C:\Users\sersmile\AppData\Local\Programs\Python\Python310\Lib\site-packages\~ymupdf-1.20.2.dist-info
    error: legacy-install-failure

× Encountered error while trying to install package. ╰─> PyMuPDF

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.


我仔细研究了一下,发现了如下问题:
1.问题是在安装paddleocr时需要安装PyMuPDF导致的,自动安装的PyMuPDF版本是1.18.7,在安装过程中会报错:`Cannot open include file: 'fitz.h': No such file or directory`,由此可以看出这是一个PyMuPDF1.18.7版本的问题
2.如果手动安装PyMuPDF,在安装paddleocr时会自动卸载更高版本的PyMuPDF而重新安装1.18.7版本的PyMuPDF
3.手动安装PyMuPDF1.18.7版本,尝试下载wheel后进行安装,结果发现我电脑上的python是3.10版本,而PyMuPDF没有对应的3.10版本wheel,如果尝试pip install PyMuPDF=1.18.7,则在安装过程中会出现上述同样的错误:`Cannot open include file: 'fitz.h': No such file or directory`
经过长时间的尝试,我并没有找到对应的解决方案,有次我得出结论,在我的电脑上python3.10环境下是无法安装PyMuPDF1.18.7版本的,最新的版本已经来到了1.20.2
请问开发者,有什么相对的解决方案吗?我认为这应该是python3.10用户共同存在的一个问题:因为安装paddleocr必然强制安装PyMuPDF1.18.7,而安装PyMuPDF必然报错

回答

7

上面问题的第三条有一点小失误:不是PyMuPDF没有python3.10的wheel,而是paddleocr强制安装的1.18.7的PyMuPDF没有python3.10的wheel

7

安装Paddleocr后,--upgrade PyMuPDF==1.19.0试试呢

0

改用python3.9

6

Version 2.6.0.3 is forcing the installation of PyMuPDF 1.19 which has the same issue above on M1 Mac. Can we make it require PyMuPDF 1.20.2 instead?

See from their release docs here:

New in PyMuPDF-1.20: there is no need to separately build or install MuPDF; the required MuPDF source code is already in the sdist and is automatically built into PyMuPDF.

0

I have test paddleocr2.6.0.3 in M1 mac with python3.6-3.10, it works fine

0

Here is my output of pip install paddleocr --no-cache-dir on an empty virtual environment in Python 3.9.12 on an M1 Mac:

iScreen Shoter - 20221024114313068 AM

It is trying to install Paddleocr 2.6.1.0.

If I execute the same command after installing via brew the old 1.19 version of mupdf, it works.

7

Similar error when installing paddleocr-2.6.1.0 in a virtual environment in Python 3.9.9 on an M2 Mac:

  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [346 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-12.6-arm64-cpython-39
      creating build/lib.macosx-12.6-arm64-cpython-39/fitz
      copying fitz/__init__.py -> build/lib.macosx-12.6-arm64-cpython-39/fitz
      copying fitz/fitz.py -> build/lib.macosx-12.6-arm64-cpython-39/fitz
      copying fitz/utils.py -> build/lib.macosx-12.6-arm64-cpython-39/fitz
      copying fitz/__main__.py -> build/lib.macosx-12.6-arm64-cpython-39/fitz
      running build_ext
      building 'fitz._fitz' extension
      creating build/temp.macosx-12.6-arm64-cpython-39
      creating build/temp.macosx-12.6-arm64-cpython-39/fitz
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Users/yilu/.local/pipx/venvs/paddleocr/include -I/Users/yilu/.pyenv/versions/3.9.9/include/python3.9 -c fitz/fitz_wrap.c -o build/temp.macosx-12.6-arm64-cpython-39/fitz/fitz_wrap.o
      fitz/fitz_wrap.c:3664:37: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types]

...
                                               ^
      80 warnings and 2 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> PyMuPDF

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
9

paddleocr2.6.0.3

I dont' know why we need specific version of PyMuPDF, remove the version works for me, (mac m1)

8

安装Paddleocr后,--upgrade PyMuPDF==1.19.0试试呢

mac 2015款 big Sur 系统、python3.6 使用此方法已解决

7

有可以解决的办法吗 m1 芯片,python3.8 报一样的错误。

9

我没找到解决办法Sent from my iPhoneOn Dec 5, 2022, at 18:15, jiangf8686 @.***> wrote: 有可以解决的办法吗 m1 芯片,python3.8 报一样的错误。

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

9

Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:

pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1
6

It works for me ,thanks!

1

Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:

pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1

This works for me!

0

Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:

pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1

This works for me!

5

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

2

我也遇到了

2

现在python3.11的pymupdf也存在编译问题,只能用python3.10的安装。

7

pip install "paddleocr>=2.0.1" PyMuPDF==1.23.3 你可以修改指定PyMuPDF的版本啊.....当然要考虑兼容性, 一般来说 问题不大

6

Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:

pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1

useful!! it installed successfully

5

pip install "paddleocr>=2.6" --upgrade PyMuPDF==1.18.0 我稍微修改了一下也成功了

7

这个问题在python3.11.4上并没有解决,PaddleOCR 2.6.1 和 2.7 要求一个低版本的PyMuPDF,但是低版本的PyMuPDF不支持py311

3

Using PyMuPDF version 1.21.1 solved my problem on M1 Monterey:

pip install "paddleocr>=2.0.1" --upgrade PyMuPDF==1.21.1

Thank you, it works!!