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.

3

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.