Skip to content
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

Unable to install on Ubuntu 24.04 LTS #611

Open
markrsmith83 opened this issue Apr 26, 2024 · 2 comments
Open

Unable to install on Ubuntu 24.04 LTS #611

markrsmith83 opened this issue Apr 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@markrsmith83
Copy link

While attempting to install LibreTranslate using LibreTranslate-init, it fails at the pip install ~/LibreTranslate step with this error:

ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from libretranslate) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0)
ERROR: No matching distribution found for torch==2.0.1

24.04 installs Python 3.12 by default.

@github-actions github-actions bot added the enhancement New feature or request label Apr 26, 2024
@PJ-Finlay
Copy link
Contributor

PJ-Finlay commented Apr 29, 2024

This is a know issue with Python 3.12 and SentencePiece. The fix is in progress now

https://community.libretranslate.com/t/upgrade-sentencepiece-to-support-python-3-12/1060

@markrsmith83
Copy link
Author

This is a know issue with Python 3.12 and SentencePiece. The fix is in progress now

https://community.libretranslate.com/t/upgrade-sentencepiece-to-support-python-3-12/1060

That worked for me, except that I had to update pyproject.toml because torch 2.0.1 wasn't an option on python 3.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants