问题1
安装paddleocr包时出现该错误
参考:
issue-when-pip-installing-packages
更新pip、setuptools和wheel
pip install --upgrade pip
pip install --upgrade setuptools wheel
安装homebrew(这里用了国内镜像)
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
换国内源,M1需要手动配置环境变量等问题可参考:
问题2
M1不支持wheel安装,需要安装最新版的pymupdf:
参考:installing-pymupdf-on-macos-big-sur
brew install mupdf swig freetype
pip install --upgrade pymupdf
大功告成~然后就可以安装paddleocr了!安装后记得降低numpy版本
pip uninstall numpy
pip install numpy==1.20.3