-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Mac M1 Compatibility #608
Comments
What kind of error did you see when installing sentencepiece on Mac M1? At least you might want to elaborate the steps you tried, otherwise, it is hard to provide the workaround at this moment. |
I use PyCharm, with a virtual environment where Tensorflow Mac OS and Torch are installed. Since the architecture of M1 is "arm64", there is a problem while building SentencePiece wheel. Here is my the end of my error logs, when I type I got the same problem with Pytorch, which I was able to install since this answer: pytorch/pytorch#48145 |
Seems that you are trying to build/install old package. What happens if you download the latest source package from here? Then try the following command to build the wheel locally.
|
Thank you for your very fast answer. I manually build the .whl package, and I have been able to install sentence piece. However, I got an error while trying to import sentencepiece: `
|
issue solved: I resintalled sentence piece through this:
I don't know how, but it seems that a broken version of sentencepiece was cached. It now smoothly works on my Mac m1! |
I'm still facing issues, even with @pierreia 's suggestion.
|
@millnerryan I ran into this issue today and got the same error you posted. I have a M1 Macbook, too. I was able to fix it, first by installing cmake:
And then by installing from the sentencepiece-*.tar.gz source package as recommended by @taku910. As of today, after downloading the file the command was:
After these two steps I was able to |
MacBook Pro M1 -21 using conda
did the trick for me |
@simhallq Thanks! Your answer solved the problem for me. |
Hi! I am also encountering some issues with installing |
Hello. I have the same problem as @stevhliu above. Can't install with any of the solutions listed here. Really quite frustrating :I |
Finally resolved |
Thanks, It's work |
I think, both |
this works for me, M1 Mac |
what works for me a lot of the time is install some previous version of problematic packages, and thats it. |
Installing cmake beforehand worked for me. Looking at the README, this is already part of the instructions (that I didn't read) |
I tried @mdvandergon 's solution: 1) installing But still got problems. I tried then @ninjalu 's solution of installing also
Thanks everyone involved in making live with M1 a bit easier! |
brew install sentencepiece it work for me |
I was going crazy, thank you @linhaosheng !
seems to have done it... |
This worked for me. Using Mac 10.13.6 |
Installing cmake fixed the error on M2
|
Hi,
Like the most part of Python librairies, SentencePiece won't install on Mac M1 architecture... "A revolution in data science" they said... what a joke, every data science library is a real pain to install!
Do you plan to make a compatible version of SentencePiece?
Thank you!
The text was updated successfully, but these errors were encountered: