Open mccg8447 opened 2 years ago
Do you have a working pytorch installation already installed?
Yes I have tried reinstalling The output is the same
https://github.com/lukas-blecher/LaTeX-OCR/discussions/100#discussioncomment-2567468 https://stackoverflow.com/a/72836926/19653877
Looks like you need to use rosetta. I can't give you exact instructions, since I don't have a mac with M1 chip
just clone the repo and pip install -e .
. Also installed miniforge. Works for me let me known if any issue.
But i have segmentation faults error i think bcz i have 8GB ram :(
I have the following problem Is there a way to solve
Installed /opt/anaconda3/envs/test/lib/python3.8/site-packages/pix2tex-0.0.28-py3.8.egg Processing dependencies for pix2tex==0.0.28 Searching for entmax Reading https://pypi.org/simple/entmax/ /opt/anaconda3/envs/test/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/05/da/27fc966a4786e933778161644a1a1a228148b296d2059682799c4a8ecff8/entmax-1.0.tar.gz#sha256=1cd9721c34935824e071c8c20900711cad60c3d84bc9e4668f3b7a8873bf62cf Best match: entmax 1.0 Processing entmax-1.0.tar.gz Writing /var/folders/9g/n3c8l9n959n_1z1p070dbnrr0000gn/T/easy_install-3uoqjexc/entmax-1.0/setup.cfg Running entmax-1.0/setup.py -q bdist_egg --dist-dir /var/folders/9g/n3c8l9n959n_1z1p070dbnrr0000gn/T/easy_install-3uoqjexc/entmax-1.0/egg-dist-tmp-r8hyt5bh error: dlopen(/opt/anaconda3/envs/test/lib/python3.8/site-packages/torch/lib/libtorch_global_deps.dylib, 0x000A): tried: '/opt/anaconda3/envs/test/lib/python3.8/site-packages/torch/lib/libtorch_global_deps.dylib' (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)))