marker icon indicating copy to clipboard operation
marker copied to clipboard

ImportError: Failed to load PyTorch C extensions

Open mctouch opened this issue 1 year ago • 1 comments

when trying to run marker_gui I receive the following error. Please tell me I don't have to compile PyTorch.

File "/home/mctouch/miniconda3/envs/pdfparse/lib/python3.11/site-packages/torch/init.py", line 749, in raise ImportError(textwrap.dedent(''' ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded the torch/_C folder of the PyTorch repository rather than the C extensions which are expected in the torch._C namespace. This can occur when using the install workflow. e.g. $ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow
    $ python setup.py develop && python -c "import torch"  # This should succeed
or by running Python from a different directory.

mctouch avatar Aug 25 '24 09:08 mctouch