I don't know how to fix this error (for pip install transformer on windows): error: can't find Rust compiler
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 ) 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 also tried this:
git clone cd transformers pip install -e . and when I install rust it doesn't work either.
31 Answer
You need to install Rust before installing transformers.
The standard way to install (from the rust documentation) is
curl --proto '=https' --tlsv1.2 -sSf | sh On windows you can use alternative methods:
Sometimes it's useful to use default answers to the installation script:
curl --proto '=https' --tlsv1.2 -sSf | sh -s -- -y 2