Error while using transformers on Heroku

I am installing transformers on Heroku. Why am I getting this error? Are there any quick fixes?

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

Python Version: 3.10.2

Hi there :wave:

Have you tried lowering the Python version to 3.8 or 3.9?

Thanks a lot! That worked. When will transformers support 3.10.x?

Glad I could help! :grin:

Regarding your question, I’ve no idea, I’m not a HuggingFace maintainer :slightly_smiling_face: I don’t think PyTorch has a 3.10 build, and transformers depends on PyTorch, so we’ll have to wait until then.