I tried to translate something, but every time I get an error. I appreciate every reply.
This is one of the codes I tried:
from googletrans import Translator
translator = Translator()
translated = translator.translate("svízelná situace", src="cs", dest="hu")
print(translated.text)
And the answer is always the same:
Use another version with the fix: pip install googletrans==4.0.0-rc1
then try without src and dest language Stack Overflow discussion
This is a bug in the googletrans package, please use higher version or follow the thread on github
pip install googletrans==4.0.0rc1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.