Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MinerU

Pip

1

mkdir MinerU
cd MinerU
uv venv
source .venv/bin/activate
uv pip install -U "mineru[core]"

Docker compose

2

# sudo pacman -S nvidia nvidia-utils nvidia-container-toolkit
mkdir mineru
cd mineru
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
sudo docker compose -f compose.yaml --profile gradio up -d

Conda

# Outdate
conda create -n MinerU python=3.10
conda activate MinerU
pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com
pip install modelscope
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/scripts/download_models.py -O download_models.py
python download_models.py

usage

# Cli
mineru -p <input_path> -o <output_path>
# WebUI
mineru-gradio --server-name 0.0.0.0 --server-port 7860

  1. Quick Start

  2. Deploying MinerU with Docker