Unable to download Huggingface API Transformers

420 Views Asked by At

After downloading tensorflow and PyTorch, and running pip install -q transformers, I get this error:

ERROR: Failed building wheel for safetensors
ERROR: Could not build wheels for safetensors, which is required to install pyproject.toml-based projects

Here is a screenshot of the whole thing: enter image description here

Not sure how to fix this. I tried upgrading pip and running this command as an answer to a similar post said to: pip3 install setuptools_rust docker-compose, but the same error keeps showing up.

Don't understand the issue and dont know how to fix it.

1

There are 1 best solutions below

2
On

I installed Rust (https://www.rust-lang.org/tools/install) and resourced my ~/.bashrc and then it worked for me.