我不知道如何解决这个错误(在Windows上使用pip安装transformer时出现的错误):错误:找不到Rust编译器。
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tokenizers
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects
我也尝试了这个:
git clone https://github.com/huggingface/transformers.git
cd transformers
pip install -e .
当我安装 Rust 时,它也无法工作。
rustc --version
命令)? - Jmb