No module named


I am trying to run this code for translating, but i am getting error

Traceback (most recent call last):
  File "", line 2, in <module>
    from import translate
ModuleNotFoundError: No module named ''

I know that this error is because of librabrary missing,
my question is that how can i install library in my erpnext?

What i am trying to achieve is i’ve two fields for example one is “Name in English” and another one is “Name is Chinese”, i want whenever user enter Name in English it automatically translate it to Chinese.

Code :

 # Imports the Google Cloud client library
from import translate

# Instantiates a client
translate_client = translate.Client()

# The text to translate
text = u'Hello, world!'
# The target language
target = 'ru'

# Translates some text into Russian
translation = translate_client.translate(

print(u'Text: {}'.format(text))
print(u'Translation: {}'.format(translation['translatedText']))



This search turned up no code that uses that package (or module?):

frappe@ubuntu:~/frappe-bench$ find . -name ‘*.py’ | xargs grep ‘’

And ‘pip list’ did not list that package (installed locally), however a web search turned up this to try:

‘pip install google-cloud’