VikParuchuri / marker

Convert PDF to markdown quickly with high accuracy
https://www.datalab.to
GNU General Public License v3.0
13.97k stars 707 forks source link

pip dependency conflicts #172

Open swswsws583 opened 1 month ago

swswsws583 commented 1 month ago

Hi, I was trying to install using miniconda with python 3.11

when I ran pip install marker-pdf, I got this error:

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.
numba 0.57.1 requires numpy<1.25,>=1.21, but you have numpy 1.26.4 which is incompatible.
torchvision 0.15.1 requires torch==2.0.0, but you have torch 2.3.0 which is incompatible.

I tried to manually install numpy 1.24.3 and torch 2.0.0, using pip install numpy==1.24.3 torch==2.0.0, but then I go this:

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.
surya-ocr 0.4.12 requires torch<3.0.0,>=2.3.0, but you have torch 2.0.0 which is incompatible.
texify 0.1.9 requires numpy<2.0.0,>=1.26.2, but you have numpy 1.24.3 which is incompatible.
texify 0.1.9 requires torch<3.0.0,>=2.1.2, but you have torch 2.0.0 which is incompatible.
marker-pdf 0.2.13 requires numpy<2.0.0,>=1.26.1, but you have numpy 1.24.3 which is incompatible.
marker-pdf 0.2.13 requires torch<3.0.0,>=2.2.2, but you have torch 2.0.0 which is incompatible.

What can I do? Thanks!

igni-c commented 1 month ago

got same error on macOs 14.5 with python 3.9, still dont know how to fix...

satamass commented 1 month ago

Got a same error also unable to found a resolution yet.

smallzhao commented 4 weeks ago

+1

gmotta commented 3 weeks ago

Hi folks, I fixed this by installing torch manually through their website and then resuming marker installation. Hope this helps!

swswsws583 commented 2 weeks ago

Resolved using these:

pip install torchvision==0.18.0 pip install torchaudio==2.3.0 pip install numba==0.60.0

then pip install marker-pdf