I want to install
First, I have cloned the
LayoutLM from this GitHub repository
After that, I will install the
LayoutLM by running its
setup.py file by running this code block:
%%bash cd /content/drive/MyDrive/LayoutLMMM/SROIE2019-20210928T080219Z-001/SROIE2019 # git clone https://github.com/microsoft/unilm.git cd unilm/layoutlm/deprecated pip install .
However, when i tried to run the script, an error occurs
Successfully built layoutlm sacremoses Failed to build tokenizers error: subprocess-exited-with-error × Building wheel for tokenizers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tokenizers ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
As I locate what library is causing the error, I found out that the
tokenizers library in the
HuggingFace is returning this error.
I have tried modifying the
setup file by omitting the
transformers library and modified the setup script of transformers to install the latest version of
tokenizer to check if it can fix the error. Yes, this method works however, the results are not accurate.
How can I install the LayoutLM without the
building wheel for tokenizers did not run successfully error?