pip dependency conflicts
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!
got same error on macOs 14.5 with python 3.9, still dont know how to fix...
Got a same error also unable to found a resolution yet.
+1
Hi folks, I fixed this by installing torch manually through their website and then resuming marker installation. Hope this helps!
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