Method to use uv to install MinerU with Python 3.12 #1374
hongbo-miao
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for this post! In addition, I had to install |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just share a way to use uv to install MinerU with Python 3.12. Succeed in Ubuntu.
pyproject.toml
Then you can install by
Notes:
magic-pdf[full]
has a dependencydetectron2
which does not have wheel. Currently for uv to install package that needs--no-build-isolation
, need run the command manually first, which is why we douv pip install --no-build-isolation git+https://github.com/facebookresearch/detectron2.git
.detectron2
didn't define the dependencytorch
, which is why we manually runuv pip install torch
beforedetectron2
.magic-pdf[full] 0.10.6
currently is using a pre-release dependencypaddlepaddle 3.0.0b1
which is why we needprerelease = "allow"
, but in future, once magic-pdf relies on a formal release version ofpaddlepaddle
, then no needprerelease = "allow"
.Also, here is a full demo: https://github.com/hongbo-miao/hongbomiao.com/tree/88e41f1d06cd8dc75099c193327e210cbe3fca94/machine-learning/mineru
Hope it helps people save some time.☺️
Beta Was this translation helpful? Give feedback.
All reactions