this has to do with you shell actually. You are probably using zsh if you are on Mac, and you are getting zsh: no matches found: transformers[sentencepiece].
For those who find this thread before others across the web, sentencepiece is currently failling install in python 3.13. Other threads suggest that installing 3.12 can resolve the issue and allow for the install to complete.
sentencepiece does not support python 3.13 yet.
Its latest version was released on Feb 19, 2024.
You need to downgrade to python 3.12 sentencepiece · PyPI
also, for those new to python, you can have more than one python version installed at the same time.
If you have multiple versions of python installed, don’t forget to use “py --list” to see which ones you got. As an example, after discovering that the issue is with python 3.13, I explicitly told it to use update 3.11 as follows: “py -3.11 -m pip install -r requirements.txt” This got through the sentencepiece part of my requirements file