How to Solve NameError: name 'GoogleTranslator' is not defined -- deep_translator

Solution: Import the 'GoogleTranslator' module

To Solve the error, add the following line to the top of your code.

from deep_translator import GoogleTranslator

 

For more information:
Python deep_translator GoogleTranslator