Install & Compatibility
Where this runs
tested against v6.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 13.2s · import 2.246s · 125MB
132MB installed
● package 132MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
translators
✓ import translators as ts
✗ from translators import *
Use 'import translators as ts' to avoid name conflicts and access all functions.
Basic usage: translate text with a specified service and language codes.
import translators as ts
# Translate text from English to Chinese
translation = ts.translate_text('Hello, world!', translator='google', from_language='en', to_language='zh')
print(translation)
# List available translators
print(ts.translators_pool())
translators --version
Errors
Common errors & fixes
KeyError: 'translation'
The translation failed due to an unsupported language pair or service unavailability.
fixCheck the translator name and language codes; use try/except to handle failures.
ModuleNotFoundError: No module named 'translators'
The library is not installed in the current Python environment.
fixRun 'pip install translators' in your terminal or environment.
TypeError: translate_text() got an unexpected keyword argument 'engine'
Using old parameter name 'engine' which was renamed to 'translator' in v6.
fixReplace 'engine=' with 'translator=' and 'from_lang=' with 'from_language=', 'to_lang=' with 'to_language='.
Upgrade
Version history
6.0.4latest on PyPI · released Jan 21, 2026
Audit
Dependencies
No dependency data recorded yet.