LaTeX-OCR icon indicating copy to clipboard operation
LaTeX-OCR copied to clipboard

Error when installing it

Open QianC95 opened this issue 8 months ago • 2 comments

These are errors I came across when I "pip install pix2tex[gui]"

ERROR: huggingface-hub 0.18.0 has requirement fsspec>=2023.5.0, but you'll have fsspec 0.7.4 which is incompatible. ERROR: tokenizers 0.14.1 has requirement huggingface_hub<0.18,>=0.16.4, but you'll have huggingface-hub 0.18.0 which is incompatible.

ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

The first two errors can be fixed using "pip install --upgrade packaging", but I don't know how to fix the last one. Is there anyone can help me with this issue?

QianC95 avatar Nov 02 '23 03:11 QianC95

Create a new conda environment with Python=3.11. Then retry this command.

LYK-love avatar Nov 03 '23 17:11 LYK-love

I can confirm that Python 3.11 works whereas Python 3.12 does not work.

In Python 3.12, the error is like below.

these package version have conflict dependencies.
pix2tex[gui] x.x.x depends on pytorch>=1.7.1.

zhan9san avatar Nov 17 '23 12:11 zhan9san