-
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
Pip install sentencepiece failure #378
Comments
Same here, only happens on Python 3.7.4 for me, works on Python 3.6. Observed on Ubuntu 16.04.4
|
Seems like a patch-level issue with Python 3.7.4. Installation succeeds with Python 3.7.3. |
Seems the valid binary whl package is not downloaded and the fallback src package is fetched instead. What happens if you install sentencepiece-0.1.83-cp37-cp37m-manylinux1_x86_64.whl directly? |
Installing the wheel directly works for me on Python 3.7.4, thanks. |
Not sure. Probably some network or download trouble. Let me close this bug now. If this issue still persist, please feel free to reopen. |
This solution doesn't work on 64-bit Ubuntu (18.04). $ wget https://files.pythonhosted.org/packages/f2/e2/813dff3d72df2f49554204e7e5f73a3dc0f0eb1e3958a4cad3ef3fb278b7/sentencepiece-0.1.91-cp37-cp37m-manylinux1_x86_64.whl .
$ pip install sentencepiece-0.1.91-cp37-cp37m-manylinux1_x86_64.whl
ERROR: sentencepiece-0.1.91-cp37-cp37m-manylinux1_x86_64.whl is not a supported wheel on this platform. |
I find a solution works for me. |
Here was how I solved (partially). Installing Transformers, unable to install sentencepiece due to: I went deep into the cause, |
you can try upgrade pip. |
The below link worked for me |
THX very much!works for me!!! |
Thank you so much. Really helped me. I've been trying to instal cdqa for so long. |
pip3 install --upgrade pip it works for me |
I come with this problem ! hardware: Apple Macbook M1 logs as blew: |
Co-sign User:GingerNg above! |
it also works for me, thanks! |
I don't know which package helped me out. but after installing these packages my problem solved:
It comes from the Build and install SentencePiece command line tools from C++ source section of the README.md |
For Apple M1 / ARM:
Then run this on rosetta emulated terminal (maybe the default terminal will work too): |
Just |
The pip install worked for a while but I got this
|
One more data point for M1 users: I used the default terminal to run
And that did it for me. |
Just want to add up probably might help. I switched to python version |
Also on M1 - this worked for me |
Make sure that setuptools is the upgraded version |
Still broken on Python 3.10.4 - any clue what to do? Intel Mac; MacOS 11.4. |
|
It worked solving the M2 issues too! Thanks, man! |
Using conda (Linux) creating an environment with |
Installing sentencepiece manually did not work for me under: Did install sentencepiece successfully via pip after the first error but the error persisted. Would welcome workaround suggestions. I'm unqualified to do this on my own, naturally. Thanks. Kind regards. P.S.
|
This is how I've fixed the problem on this particular server: Python 3.11.0, Ubuntu 20.04 (focal): sudo apt-get install pkg-config
sudo apt-get install cmake So basically I provided all necessary building tools to build Personally, I didn't want to depend on a boundary case for a specific scenario, but to keep generic installation |
A very big THANK YOU! Kind regards. |
#After installation cmake and pkg-config , I got this error Package sentencepiece was not found in the pkg-config search path. |
My goal was to install FlairNLP, which relies on sentencepiece to run. After poking around at this problem for a while, this is what worked for me. I have a MacOS, I am using zsh, and I have Python 3.10.5. After activating my virtual environment, I ran the following command: pip3 install --only-binary sentencepiece flair I think this worked because the installation kept getting stuck on the step where it had to build a wheel for the sentencepiece dependency: Building wheels for collected packages: sentencepiece So I read this article about Python wheels and figured I'd force pip to use wheels instead of source distributions for sentencepiece. Hope this helps! |
None of this worked until I found this comment: #608 (comment)
seems to have finally done it... So
and then finally for Huggingface
Finally......! |
I confirm that installing cmake on Macos Ventura
it allows me to install correctly
Thank you! |
I solved this first by running the below command
and then running |
For anyone still having this issue on Windows, this fixed things for me! |
For anyone on Mac M1 this indeed fixed the issue: I first tried:
didn't work so then I did:
and indeed it worked 🎉🎉🎉 |
Thanks Buddy this worked for Macbook Air M1 |
I have a M2 Macbook Pro and works after apply this thread! |
I am Windows with Intel, but this also solved the issue for me: |
Just brew install cmake fixed the issue for me too |
I missed the same issue,and i demote my python vision <=3.8,the issue canbe settled |
Hi,
pip install sentencepiece
fails,This is the log I get:
The text was updated successfully, but these errors were encountered: