microsoft / unilm

Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities
https://aka.ms/GeneralAI
MIT License
20.26k stars 2.56k forks source link

installing the dependencies for layoutlmv3, the tokenizers library throws an error #1655

Open Jorya2333 opened 1 week ago

Jorya2333 commented 1 week ago

Describe the bug Model I am using ( LayoutLMv3):

The problem arises when using:

A clear and concise description of what the bug is.

When installing the dependencies for layoutlmv3, the tokenizers library throws an error. I found some information suggesting that the issue is related to an improperly configured Rust compilation environment, but I already have Rust version rustc 1.82.0 installed on my machine. The error is as follows:

error: cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features pyo3/extension-module --crate-type cdylib -- failed with code 101 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tokenizers Successfully built seqeval deepspeed Failed to build tokenizers ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tokenizers)

To Reproduce Steps to reproduce the behavior:

  1. Clone the layoutlmv3 repository
  2. Run pip install -r requirements.txt
  3. Encounter a Rust compilation error, preventing the installation of the tokenizers library

Expected behavior A clear and concise description of what you expected to happen.