Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I try to install googletrans https://pypi.org/project/googletrans/

by running this command as adviced:

$ pip install googletrans

but I always get same error both at python 3.5 and python 2.7:

Collecting googletrans
Using cached googletrans-3.0.0.tar.gz (17 kB)
ERROR: Could not find a version that satisfies the requirement httpx==0.13.3 (from googletrans) (from versions: none)
ERROR: No matching distribution found for httpx==0.13.3 (from googletrans)

I tried different commands but I still cannot figure out what is wrong. Install of httpx also fails:

pip install httpx
ERROR: Could not find a version that satisfies the requirement httpx (from versions: none)
ERROR: No matching distribution found for httpx

Any help would be highly appreciated. Thanks

question from:https://stackoverflow.com/questions/65873309/unable-to-install-googletrans-with-pip

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.7k views
Welcome To Ask or Share your Answers For Others

1 Answer

Please read the official pages next time: https://github.com/encode/httpx

HTTPX requires Python 3.6+.

In other words, in order to install googletrans, its dependency httpx needs to be installed, and that can only happen if you have Python 3.6 or higher.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...