Googletrans AttibutError

问题描述 投票:0回答:1

从 googletrans -4.0.0rc1 导入翻译器时,出现以下错误:

AttributeError: module 'httpcore' has no attribute 'UnsupportedProtocol'

有人可以帮忙吗?

我也尝试安装3.0版本,但仍然出现错误。

google-translate
1个回答
0
投票

httpx==0.13.3 httpcore-0.14.0

U 问题不在于谷歌翻译本身,而在于依赖项。 将这些版本放入库中。

© www.soinside.com 2019 - 2024. All rights reserved.