marker icon indicating copy to clipboard operation
marker copied to clipboard

pip dependency conflicts

Open swswsws583 opened this issue 1 year ago • 5 comments

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!

swswsws583 avatar Jun 04 '24 14:06 swswsws583

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

igni-c avatar Jun 05 '24 02:06 igni-c

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

satamass avatar Jun 05 '24 13:06 satamass

+1

smallzhao avatar Jun 07 '24 06:06 smallzhao

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

gmotta avatar Jun 12 '24 21:06 gmotta

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

swswsws583 avatar Jun 18 '24 11:06 swswsws583