For Windows : python -m pip install translate
For Linux : pip3 install translate
For more repositories visit here
replace the value of from_lang and to_lang of your choice languages && In translate() add the text you want to translate
Input (inside the code) : Hola ......(Spanish)