【发布时间】:2020-07-20 10:26:19
【问题描述】:
当我尝试使用 pip install googletrans 安装 googletrans 时,我在 cmd 中收到错误消息。
我正在使用 python 3.6 32bit
错误:-
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for V
isual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\abhishek\appdata\local\
programs\python\python36-32\python.exe' -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'C:\\Users\\Abhishek\\AppData\\Local\\Temp\\pip-install-yv7ec
6vh\\immutables\\setup.py'"'"'; __file__='"'"'C:\\Users\\Abhishek\\AppData\\Loca
l\\Temp\\pip-install-yv7ec6vh\\immutables\\setup.py'"'"';f=getattr(tokenize, '"'
"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"')
;f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\U
sers\Abhishek\AppData\Local\Temp\pip-record-i61td5hb\install-record.txt' --singl
e-version-externally-managed --compile --install-headers 'c:\users\abhishek\appd
ata\local\programs\python\python36-32\Include\immutables' Check the logs for ful
l command output.
有什么办法可以解决这个错误。
请帮忙!!!!!!
【问题讨论】:
-
该错误与包无关。但是,您可能需要检查此工具:github.com/nidhaloff/deep_translator
标签: python google-translate google-translation-api