我试图测试googletrans每次我试图运行文件时,我得到这个错误消息:
from googletrans import Translator
字符串
ModuleNotFoundError:没有名为“webmaster”的模块。
我试过卸载googletrans并重新安装它。当我尝试安装它时,这是我得到的:
C:\WINDOWS\system32>pip install googletrans==4.0.0rc1
Collecting googletrans==4.0.0rc1
Using cached googletrans-4.0.0rc1-py3-none-any.whl
Requirement already satisfied: httpx==0.13.3 in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from googletrans==4.0.0rc1) (0.13.3)
Requirement already satisfied: certifi in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (2023.11.17)
Requirement already satisfied: hstspreload in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (2023.1.1)
Requirement already satisfied: sniffio in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (1.3.0)
Requirement already satisfied: chardet==3.* in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (3.0.4)
Requirement already satisfied: idna==2.* in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (2.10)
Requirement already satisfied: rfc3986<2,>=1.3 in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (1.5.0)
Requirement already satisfied: httpcore==0.9.* in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpx==0.13.3->googletrans==4.0.0rc1) (0.9.1)
Requirement already satisfied: h11<0.10,>=0.8 in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0rc1) (0.9.0)
Requirement already satisfied: h2==3.* in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0rc1) (3.2.0)
Requirement already satisfied: hyperframe<6,>=5.2.0 in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0rc1) (5.2.0)
Requirement already satisfied: hpack<4,>=3.0 in c:\users\arbik\appdata\local\programs\python\python312\lib\site-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0rc1) (3.0.0)
Installing collected packages: googletrans
Successfully installed googletrans-4.0.0rc1
型
我正在使用Pycharm社区2023.3。
我试着卸载googletrans并重新安装它。
1条答案
按热度按时间cmssoen21#
你可能想尝试一个旧版本的python或googlettranss,有些模块只适用于特定的python版本。