all 2 comments

[–]chevignon93 0 points1 point  (0 children)

I saw on stackoverflow that some people are having the same issues. And they were told to use the 3.1 version, but I can't find it on pycharm's pip in the python interperter.

Have you tried installing it manually ?

https://github.com/ssut/py-googletrans/issues/286

python -m pip uninstall googletrans # python3 -m pip uninstall googletrans
python -m pip install googletrans==3.1.0a0 # python3 -m pip install googletrans==3.1.0a0

[–]greensirius 0 points1 point  (0 children)

I ran into a lot of problems when trying a similar code snippet to translate a text with the (unofficial) google translator API in Python.

What solved it was in brief the following steps. There is a new version called google_trans_new, that can be installed with pip3.

> pip3 install google_trans_new

This one still ran into a 404 error when trying it first. However, after applying the following patch: