Comments (3)
It looks like pip is having a hard time installing SentencePiece from PyPI. Try:
python3 --version
python3 -m pip install --upgrade pip
python3 -m pip install argostranslate
from argos-translate.
I've also encountered this error, strange:
[piero:~/Documents/LibreTranslate] [.venv] main(+1/-1) ± python --version
Python 3.9.2
[piero:~/Documents/LibreTranslate] [.venv] main(+1/-1) ± pip --version
pip 21.0.1 from /home/piero/Documents/LibreTranslate/.venv/lib/python3.9/site-packages/pip (python 3.9)
[piero:~/Documents/LibreTranslate] [.venv] main(+1/-1) ±
Using cached sentencepiece-0.1.91.tar.gz (500 kB)
ERROR: Command errored out with exit status 1:
command: /home/piero/Documents/LibreTranslate/.venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f76qltwn/sentencepiece_138f52ae46de46f292fae243caf9c6dc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f76qltwn/sentencepiece_138f52ae46de46f292fae243caf9c6dc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-l4_vy2xu
cwd: /tmp/pip-install-f76qltwn/sentencepiece_138f52ae46de46f292fae243caf9c6dc/
Complete output (5 lines):
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
Package 'sentencepiece', required by 'virtual:world', not found
Failed to find sentencepiece pkgconfig
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ba/f6/520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086/sentencepiece-0.1.91.tar.gz#sha256=f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f (from https://pypi.org/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sentencepiece==0.1.91 (from argostranslate)
ERROR: No matching distribution found for sentencepiece==0.1.91
This is on Arch Linux.
from argos-translate.
On the other hand, 0.1.94
works fine (?)
pip install sentencepiece==0.1.94
from argos-translate.
Related Issues (20)
- How to use custom model?
- Stanza version >=1.1.1 breaks a few langauges HOT 2
- Support for Brazilian Portuguese
- [BUG] SIGSEGV
- Title
- Upgrade SentencePiece for Windows Support on Python 3.12+ HOT 2
- Translation of pre-split and pre-tokenized sentences
- Translation from Spanish -> English missing words
- (feature request) a way to pause and continue a translation process that takes days to execute; plus a progress indicator
- Installation procedure has chronic crashes due to bulky files. Crash recovery fails. Manual procedure needed.
- KeyError: 'ctranslate2' on installation attempt
- Wrong country names - English to slovak
- Wrong country translations - English to French HOT 1
- Wrong country name translations English to German
- Some duplicate results in en to zh
- Error when install en_ja model
- Pretrained model Spanish-Hebrew Hebrew-Spanish
- macOS app crashes immediately when trying to download package
- Duplicate Translation Output for the Word "enrolled" in Portuguese
- SRT option?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argos-translate.