deepseek-ai / deepseek-ai/DeepSeek-OCR
pip install -r requirements.txt 失败:vllm 0.8.5+cu118 requires tokenizers>=0.21.1, but you have tokenizers 0.20.3 which is incompatible.
- Dominant language
- Python
- Stars
- 23.9k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Debian GNU/Linux 13 (trixie)
Linux 6.12.48+deb13-amd64
Python 3.12.12
GeForce GTX 1080 Ti
NVIDIA-SMI 550.163.01 Driver Version: 550.163.01 CUDA Version: 12.4
进行到`pip install -r requirements.txt`这步出错:
```
Collecting transformers==4.46.3 (from -r requirements.txt (line 1))
Downloading transformers-4.46.3-py3-none-any.whl.metadata (44 kB)
Collecting tokenizers==0.20.3 (from -r requirements.txt (line 2))
Downloading tokenizers-0.20.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting PyMuPDF (from -r requirements.txt (line 3))
Downloading pymupdf-1.26.5-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (3.4 kB)
Collecting img2pdf (from -r requirements.txt (line 4))
Downloading img2pdf-0.6.1.tar.gz (106 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: einops in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from -r requirements.txt (line 5)) (0.8.1)
Collecting easydict (from -r requirements.txt (line 6))
Downloading easydict-1.13-py3-none-any.whl.metadata (4.2 kB)
Collecting addict (from -r requirements.txt (line 7))
Downloading addict-2.4.0-py3-none-any.whl.metadata (1.0 kB)
Requirement already satisfied: Pillow in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from -r requirements.txt (line 8)) (11.3.0)
Requirement already satisfied: numpy in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from -r requirements.txt (line 9)) (2.2.6)
Requirement already satisfied: filelock in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (3.19.1)
Requirement already satisfied: huggingface-hub<1.0,>=0.23.2 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (0.35.3)
Requirement already satisfied: packaging>=20.0 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (25.0)
Requirement already satisfied: pyyaml>=5.1 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (6.0.3)
Requirement already satisfied: regex!=2019.12.17 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (2025.10.22)
Requirement already satisfied: requests in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (2.32.5)
Requirement already satisfied: safetensors>=0.4.1 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (0.6.2)
Requirement already satisfied: tqdm>=4.27 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from transformers==4.46.3->-r requirements.txt (line 1)) (4.67.1)
Requirement already satisfied: fsspec>=2023.5.0 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.23.2->transformers==4.46.3->-r requirements.txt (line 1)) (2025.9.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.23.2->transformers==4.46.3->-r requirements.txt (line 1)) (4.15.0)
Requirement already satisfied: hf-xet<2.0.0,>=1.1.3 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.23.2->transformers==4.46.3->-r requirements.txt (line 1)) (1.1.10)
Collecting pikepdf (from img2pdf->-r requirements.txt (line 4))
Downloading pikepdf-9.11.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (8.2 kB)
Requirement already satisfied: Deprecated in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from pikepdf->img2pdf->-r requirements.txt (line 4)) (1.2.18)
Collecting lxml>=4.8 (from pikepdf->img2pdf->-r requirements.txt (line 4))
Downloading lxml-6.0.2-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.metadata (3.6 kB)
Requirement already satisfied: wrapt<2,>=1.10 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from Deprecated->pikepdf->img2pdf->-r requirements.txt (line 4)) (1.17.3)
Requirement already satisfied: charset_normalizer<4,>=2 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from requests->transformers==4.46.3->-r requirements.txt (line 1)) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from requests->transformers==4.46.3->-r requirements.txt (line 1)) (3.11)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from requests->transformers==4.46.3->-r requirements.txt (line 1)) (2.5.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/wencan/Projects/venv/deepseekocr/lib/python3.12/site-packages (from requests->transformers==4.46.3->-r requirements.txt (line 1)) (2025.10.5)
Downloading transformers-4.46.3-py3-none-any.whl (10.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.0/10.0 MB 698.2 kB/s 0:00:14
Downloading tokenizers-0.20.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 398.9 kB/s 0:00:07
Downloading pymupdf-1.26.5-cp39-abi3-manylinux_2_28_x86_64.whl (24.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.1/24.1 MB 442.8 kB/s 0:00:53
Downloading easydict-1.13-py3-none-any.whl (6.8 kB)
Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
Downloading pikepdf-9.11.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 379.7 kB/s 0:00:07
Downloading lxml-6.0.2-cp312-cp312-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (5.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 478.4 kB/s 0:00:10
Building wheels for collected packages: img2pdf
Building wheel for img2pdf (pyproject.toml) ... done
Created wheel for img2pdf: filename=img2pdf-0.6.1-py3-none-any.whl size=51101 sha256=9c5c89e40ee4640818a9f2bfd1891e3e043656c2d94cd2464b81fc597d6bd1be
Stored in directory: /home/wencan/.cache/pip/wheels/a5/05/56/c05447973db749cd2178b8f95e36f007f0af5f5dce2c6197a5
Successfully built img2pdf
Installing collected packages: easydict, addict, PyMuPDF, lxml, pikepdf, tokenizers, img2pdf, transformers
Attempting uninstall: tokenizers
Found existing installation: tokenizers 0.22.1
Uninstalling tokenizers-0.22.1:
Successfully uninstalled tokenizers-0.22.1
Attempting uninstall: transformers
Found existing installation: transformers 4.57.1
Uninstalling transformers-4.57.1:
Successfully uninstalled transformers-4.57.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
vllm 0.8.5+cu118 requires tokenizers>=0.21.1, but you have tokenizers 0.20.3 which is incompatible.
vllm 0.8.5+cu118 requires transformers>=4.51.1, but you have transformers 4.46.3 which is incompatible.
Successfully installed PyMuPDF-1.26.5 addict-2.4.0 easydict-1.13 img2pdf-0.6.1 lxml-6.0.2 pikepdf-9.11.0 tokenizers-0.20.3 transformers-4.46.3
```
环境已经安装的包:
```
Package Version
---------------------------------------- -------------
addict 2.4.0
aiohappyeyeballs 2.6.1
aiohttp 3.13.1
aiosignal 1.4.0
airportsdata 20250909
annotated-types 0.7.0
anyio 4.11.0
astor 0.8.1
attrs 25.4.0
blake3 1.0.8
cachetools 6.2.1
certifi 2025.10.5
charset-normalizer 3.4.4
click 8.2.1
cloudpickle 3.1.1
compressed-tensors 0.9.3
cupy-cuda12x 13.6.0
Deprecated 1.2.18
depyf 0.18.0
dill 0.4.0
diskcache 5.6.3
distro 1.9.0
dnspython 2.8.0
easydict 1.13
einops 0.8.1
email-validator 2.3.0
fastapi 0.119.1
fastapi-cli 0.0.14
fastapi-cloud-cli 0.3.1
fastrlock 0.8.3
filelock 3.19.1
frozenlist 1.8.0
fsspec 2025.9.0
gguf 0.17.1
googleapis-common-protos 1.71.0
grpcio 1.75.1
h11 0.16.0
hf-xet 1.1.10
httpcore 1.0.9
httptools 0.7.1
httpx 0.28.1
huggingface-hub 0.35.3
idna 3.11
img2pdf 0.6.1
importlib_metadata 8.0.0
interegular 0.3.3
Jinja2 3.1.6
jiter 0.11.1
jsonschema 4.25.1
jsonschema-specifications 2025.9.1
lark 1.2.2
llguidance 0.7.30
llvmlite 0.44.0
lm-format-enforcer 0.10.12
lxml 6.0.2
markdown-it-py 4.0.0
MarkupSafe 2.1.5
mdurl 0.1.2
mistral_common 1.8.5
mpmath 1.3.0
msgpack 1.1.2
msgspec 0.19.0
multidict 6.7.0
nest-asyncio 1.6.0
networkx 3.5
ninja 1.13.0
numba 0.61.2
numpy 2.2.6
nvidia-cublas-cu11 11.11.3.6
nvidia-cuda-cupti-cu11 11.8.87
nvidia-cuda-nvrtc-cu11 11.8.89
nvidia-cuda-runtime-cu11 11.8.89
nvidia-cudnn-cu11 9.1.0.70
nvidia-cufft-cu11 10.9.0.58
nvidia-curand-cu11 10.3.0.86
nvidia-cusolver-cu11 11.4.1.48
nvidia-cusparse-cu11 11.7.5.86
nvidia-nccl-cu11 2.21.5
nvidia-nvtx-cu11 11.8.86
openai 2.6.0
opencv-python-headless 4.12.0.88
opentelemetry-api 1.26.0
opentelemetry-exporter-otlp 1.26.0
opentelemetry-exporter-otlp-proto-common 1.26.0
opentelemetry-exporter-otlp-proto-grpc 1.26.0
opentelemetry-exporter-otlp-proto-http 1.26.0
opentelemetry-proto 1.26.0
opentelemetry-sdk 1.26.0
opentelemetry-semantic-conventions 0.47b0
opentelemetry-semantic-conventions-ai 0.4.13
outlines 0.1.11
outlines_core 0.1.26
packaging 25.0
partial-json-parser 0.2.1.1.post6
pikepdf 9.11.0
pillow 11.3.0
pip 25.2
prometheus_client 0.23.1
prometheus-fastapi-instrumentator 7.1.0
propcache 0.4.1
protobuf 4.25.8
psutil 7.1.1
py-cpuinfo 9.0.0
pycountry 24.6.1
pydantic 2.12.3
pydantic_core 2.41.4
pydantic-extra-types 2.10.6
Pygments 2.19.2
PyMuPDF 1.26.5
python-dotenv 1.1.1
python-json-logger 4.0.0
python-multipart 0.0.20
PyYAML 6.0.3
pyzmq 27.1.0
ray 2.50.1
referencing 0.37.0
regex 2025.10.22
requests 2.32.5
rich 14.2.0
rich-toolkit 0.15.1
rignore 0.7.1
rpds-py 0.27.1
safetensors 0.6.2
scipy 1.16.2
sentencepiece 0.2.1
sentry-sdk 2.42.1
setuptools 80.9.0
shellingham 1.5.4
six 1.17.0
sniffio 1.3.1
starlette 0.48.0
sympy 1.13.1
tiktoken 0.12.0
tokenizers 0.20.3
torch 2.6.0+cu118
torchaudio 2.6.0+cu118
torchvision 0.21.0+cu118
tqdm 4.67.1
transformers 4.46.3
triton 3.2.0
typer 0.20.0
typing_extensions 4.15.0
typing-inspection 0.4.2
urllib3 2.5.0
uvicorn 0.38.0
uvloop 0.22.1
vllm 0.8.5+cu118
watchfiles 1.1.1
websockets 15.0.1
wrapt 1.17.3
xformers 0.0.29.post2
xgrammar 0.1.18
yarl 1.22.0
zipp 3.23.0
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.