在 macOS 上,默认的 shell 从 Bash 切换到了 Z shell,而 Z shell 对于某些类型的字符串匹配有特殊的处理逻辑,这可能导致no matches found错误。 可以通过在命令行禁用globbing特性,再尝试运行安装命令
setopt no_nomatch
pip install magic-pdf[full]
可能是由于模型文件未下载完整导致,可尝试重新下载模型文件后再试 参考:https://github.com/opendatalab/MinerU/issues/143
模型文件的路径输入是在"magic-pdf.json"中通过
{
"models-dir": "/tmp/models"
}
进行配置的。 这个路径是绝对路径而不是相对路径,绝对路径的获取可在models目录中通过命令 "pwd" 获取。 参考:https://github.com/opendatalab/MinerU/issues/155#issuecomment-2230216874
ImportError: libGL.so.1: cannot open shared object file: No such file or directoryWSL2的Ubuntu22.04中缺少libgl库,可通过以下命令安装libgl库解决:
sudo apt-get install libgl1-mesa-glx
参考:https://github.com/opendatalab/MinerU/issues/388
ModuleNotFoundError : Nomodulenamed 'fairscale'需要卸载该模块并重新安装
pip uninstall fairscale
pip install fairscale
参考:https://github.com/opendatalab/MinerU/issues/411
cuda11对新显卡的兼容性不好,需要升级paddle使用的cuda版本
pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/
参考:https://github.com/opendatalab/MinerU/issues/558
非法指令 (核心已转储) 或 Illegal instruction (core dumped)可能是因为服务器CPU不支持AVX/AVX2指令集,或cpu本身支持但被运维禁用了,可以尝试联系运维解除限制或更换服务器。
参考:https://github.com/opendatalab/MinerU/issues/591 , https://github.com/opendatalab/MinerU/issues/736
ERROR: Failed building wheel for simsimd新版本albumentations(1.4.21)引入了依赖simsimd,由于simsimd在linux的预编译包要求glibc的版本大于等于2.28,导致部分2019年之前发布的Linux发行版无法正常安装,可通过如下命令安装:
pip install -U magic-pdf[full,old_linux] --extra-index-url https://wheels.myhloli.com