fork download
  1. (venv) hoangcongtuan@MacBook-Pro-2019 multi_lang_res_build_android % pip uninstall googletrans
  2.  
  3. Found existing installation: googletrans 3.0.0
  4. Uninstalling googletrans-3.0.0:
  5. Would remove:
  6. /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/bin/translate
  7. /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages/googletrans-3.0.0-py3.9.egg
  8. Proceed (y/n)? y
  9. Successfully uninstalled googletrans-3.0.0
  10. (venv) hoangcongtuan@MacBook-Pro-2019 multi_lang_res_build_android % git clone https://g...content-available-to-author-only...b.com/alainrouillon/py-googletrans.git
  11.  
  12. fatal: destination path 'py-googletrans' already exists and is not an empty directory.
  13. (venv) hoangcongtuan@MacBook-Pro-2019 multi_lang_res_build_android % cd py-googletrans
  14. (venv) hoangcongtuan@MacBook-Pro-2019 py-googletrans % git branch
  15. * feature/enhance-use-of-direct-api
  16. master
  17. (venv) hoangcongtuan@MacBook-Pro-2019 py-googletrans % python setup.py install
  18. running install
  19. running bdist_egg
  20. running egg_info
  21. writing googletrans.egg-info/PKG-INFO
  22. writing dependency_links to googletrans.egg-info/dependency_links.txt
  23. writing requirements to googletrans.egg-info/requires.txt
  24. writing top-level names to googletrans.egg-info/top_level.txt
  25. reading manifest file 'googletrans.egg-info/SOURCES.txt'
  26. reading manifest template 'MANIFEST.in'
  27. writing manifest file 'googletrans.egg-info/SOURCES.txt'
  28. installing library code to build/bdist.macosx-10.15-x86_64/egg
  29. running install_lib
  30. running build_py
  31. creating build/bdist.macosx-10.15-x86_64/egg
  32. creating build/bdist.macosx-10.15-x86_64/egg/googletrans
  33. copying build/lib/googletrans/models.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  34. copying build/lib/googletrans/client.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  35. copying build/lib/googletrans/constants.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  36. copying build/lib/googletrans/__init__.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  37. copying build/lib/googletrans/gtoken.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  38. copying build/lib/googletrans/utils.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  39. copying build/lib/googletrans/urls.py -> build/bdist.macosx-10.15-x86_64/egg/googletrans
  40. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/models.py to models.cpython-39.pyc
  41. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/client.py to client.cpython-39.pyc
  42. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/constants.py to constants.cpython-39.pyc
  43. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/__init__.py to __init__.cpython-39.pyc
  44. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/gtoken.py to gtoken.cpython-39.pyc
  45. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/utils.py to utils.cpython-39.pyc
  46. byte-compiling build/bdist.macosx-10.15-x86_64/egg/googletrans/urls.py to urls.cpython-39.pyc
  47. creating build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  48. installing scripts to build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
  49. running install_scripts
  50. running build_scripts
  51. creating build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
  52. copying build/scripts-3.9/translate -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
  53. changing mode of build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts/translate to 755
  54. copying googletrans.egg-info/PKG-INFO -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  55. copying googletrans.egg-info/SOURCES.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  56. copying googletrans.egg-info/dependency_links.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  57. copying googletrans.egg-info/requires.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  58. copying googletrans.egg-info/top_level.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
  59. zip_safe flag not set; analyzing archive contents...
  60. creating 'dist/googletrans-3.0.0-py3.9.egg' and adding 'build/bdist.macosx-10.15-x86_64/egg' to it
  61. removing 'build/bdist.macosx-10.15-x86_64/egg' (and everything under it)
  62. Processing googletrans-3.0.0-py3.9.egg
  63. Copying googletrans-3.0.0-py3.9.egg to /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  64. Adding googletrans 3.0.0 to easy-install.pth file
  65. Installing translate script to /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/bin
  66.  
  67. Installed /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages/googletrans-3.0.0-py3.9.egg
  68. Processing dependencies for googletrans==3.0.0
  69. Searching for httpx==0.13.3
  70. Best match: httpx 0.13.3
  71. Adding httpx 0.13.3 to easy-install.pth file
  72.  
  73. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  74. Searching for sniffio==1.1.0
  75. Best match: sniffio 1.1.0
  76. Adding sniffio 1.1.0 to easy-install.pth file
  77.  
  78. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  79. Searching for hstspreload==2020.9.15
  80. Best match: hstspreload 2020.9.15
  81. Adding hstspreload 2020.9.15 to easy-install.pth file
  82.  
  83. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  84. Searching for chardet==3.0.4
  85. Best match: chardet 3.0.4
  86. Adding chardet 3.0.4 to easy-install.pth file
  87. Installing chardetect script to /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/bin
  88.  
  89. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  90. Searching for idna==2.10
  91. Best match: idna 2.10
  92. Adding idna 2.10 to easy-install.pth file
  93.  
  94. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  95. Searching for httpcore==0.9.1
  96. Best match: httpcore 0.9.1
  97. Adding httpcore 0.9.1 to easy-install.pth file
  98.  
  99. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  100. Searching for certifi==2020.6.20
  101. Best match: certifi 2020.6.20
  102. Adding certifi 2020.6.20 to easy-install.pth file
  103.  
  104. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  105. Searching for rfc3986==1.4.0
  106. Best match: rfc3986 1.4.0
  107. Adding rfc3986 1.4.0 to easy-install.pth file
  108.  
  109. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  110. Searching for h2==3.2.0
  111. Best match: h2 3.2.0
  112. Adding h2 3.2.0 to easy-install.pth file
  113.  
  114. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  115. Searching for h11==0.9.0
  116. Best match: h11 0.9.0
  117. Adding h11 0.9.0 to easy-install.pth file
  118.  
  119. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  120. Searching for hpack==3.0.0
  121. Best match: hpack 3.0.0
  122. Adding hpack 3.0.0 to easy-install.pth file
  123.  
  124. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  125. Searching for hyperframe==5.2.0
  126. Best match: hyperframe 5.2.0
  127. Adding hyperframe 5.2.0 to easy-install.pth file
  128.  
  129. Using /Users/hoangcongtuan/python_project/multi_lang_res_build_android/venv/lib/python3.9/site-packages
  130. Finished processing dependencies for googletrans==3.0.0
  131. (venv) hoangcongtuan@MacBook-Pro-2019 py-googletrans % python
  132. Python 3.9.0 (default, Oct 27 2020, 14:15:17)
  133. [Clang 12.0.0 (clang-1200.0.32.21)] on darwin
  134. Type "help", "copyright", "credits" or "license" for more information.
  135. >>> from googletrans import Translator
  136. >>> translator = Translator(service_urls=['translate.googleapis.com']) # At direct pip install,this service_url : translate.googleapis.com will not work , this is the indicator that new code had been installed
  137. >>> translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
  138. >>> print(translated_text.text)
  139. सभी एक में अश्वशक्ति रंग लेजर प्रिंटर
  140. >>>
Runtime error #stdin #stdout #stderr 0s 4568KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog.sh: line 1: syntax error near unexpected token `hoangcongtuan@MacBook-Pro-2019'
./prog.sh: line 1: `(venv) hoangcongtuan@MacBook-Pro-2019 multi_lang_res_build_android % pip uninstall googletrans'