2

While installing flair using pip install flair in python 3.10 virtual environment on mac-os Ventura, I get the following error:

ERROR: Failed building wheel for sentencepiece

Seperately installing sentencepeice using pip install sentenpeice did not work.

Upgrading pip did not work.

I am using Intel macbook.

Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35

2 Answers2

1

Try downgrading Python.

I was having this same issue, also with an intel mac, everytime I tried to use the transformers library, went through a lot of possible solutions without success, even with multiple chatGPT advices. I uninstalled python 3.11 and got back to the 3.9.13 version and the issue was gone! It seems there's some issue with wheels for latest python versions

0

The answer suggested by Github user @millnerryan is crisp and precise.

Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35
  • 1
    For M1 macbook, [this one](https://github.com/google/sentencepiece/issues/378#issuecomment-969896519) worked for me. – swag2198 Feb 04 '23 at 18:36