LaTeX-OCR
LaTeX-OCR copied to clipboard
Error when installing it
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?
Create a new conda environment with Python=3.11. Then retry this command.
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.