GithubHelp home page GithubHelp logo

Comments (3)

PJ-Finlay avatar PJ-Finlay commented on July 17, 2024

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.

pierotofy avatar pierotofy commented on July 17, 2024

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.

pierotofy avatar pierotofy commented on July 17, 2024

On the other hand, 0.1.94 works fine (?)

pip install sentencepiece==0.1.94

from argos-translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.