Closed newplay closed 1 month ago
Thanks for your feedback. Conda is recommended for environment creation only. Try to install all dependencies using pip, which can significantly reduce version conflict issues. Ubuntu 22.04 LTS is our mainline compatibility version. In subsequent compatibility releases, a single command will be supported to install the full package without encountering compatibility issues.
Thanks for your feedback. Conda is recommended for environment creation only. Try to install all dependencies using pip, which can significantly reduce version conflict issues. Ubuntu 22.04 LTS is our mainline compatibility version. In subsequent compatibility releases, a single command will be supported to install the full package without encountering compatibility issues.
I agree with what you are saying, but I just wanted to share my solution for handling dependency issues. I encountered many problems and errors when using pip install magic-pdf[full-cpu]
. Before the new version is released, I hope to provide a simpler workaround so that more people can try out this tool. I'm really looking forward to the new version and excited to see the improvements it will bring.
Best Regards,
TzuChing
@newplay Thank you once more for your sincere contribution,hope you have an awesome day!
We update 0.6.2b1 release,solved this problem.
Description of the bug | 错误描述
使用ubuntu22.04lts安装会有诸多依赖问题
How to reproduce the bug | 如何复现
按照
readme.md
执行源码安装,很容易出现各种依赖问题,如paddle核心崩溃,torchtext出现ValueError:"SP_DIR"
问题 目前测试的解决方案: 创建虚拟环境并进入创建好的虚拟环境进到
MinerU
的根目录执行
setup.py
这里可能会有一个
ImportError: libmupdf.so.24.8: cannot open shared object file: No such file or directory
的问题,找到libmupdf.so.24.8
然后将路径放到$LD_LIBRARY_PATH即可。接著conda install 需要的依赖:
这里我改成pytorch=2.3.0,测试发现这个版本比较没有依赖的限制,若使用pytorch=2.3.1可能会碰到torchtext版本过低无法安装或者使用pip安装torchtext=0.18.0导致输出为
SP_DIR
而停止。下载模型与magic-pdf.json的设置没有改变
以上是我解决Ubuntu22.04lts无法执行的方法,供大家参考
Operating system | 操作系统
Linux
Python version | Python 版本
3.10
Software version | 软件版本 (magic-pdf --version)
0.6.x
Device mode | 设备模式
cuda