我尝试安装googletranshttps://pypi.org/project/googletrans/
通过按提示运行此命令:
$ pip install googletrans
但在python 3.5和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)
我尝试了不同的命令,但仍然无法找出错误。 httpx的安装也失败:
pip install httpx
ERROR: Could not find a version that satisfies the requirement httpx (from versions: none)
ERROR: No matching distribution found for httpx
任何帮助都将不胜感激。谢谢
下次请阅读官方网页:https://github.com/encode/httpx
换句话说,为了安装
googletrans
,需要安装它的依赖项httpx
,并且只有在使用Python3.6或更高版本时才能安装相关问题 更多 >
编程相关推荐