【问题标题】:Stuck with error while installing googletrans安装 googletrans 时遇到错误
【发布时间】: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.

有什么办法可以解决这个错误。

请帮忙!!!!!!

【问题讨论】:

标签: python google-translate google-translation-api


【解决方案1】:

错误清楚地表明需要 Microsoft Visual C++ 14.0。使用“Visual Studio 构建工具”获取它:https://visualstudio.microsoft.com/downloads/ 然后选择“Visual Studio 2019 工具”并选择“Visual Studio 2019 构建工具”选择您的操作系统类型并下载构建工具。

在您的“下载”文件夹中,您将有一个名为“vs_BuildTools”的程序启动它,然后通过设置运行,

安装 VS 2019 并检查这些要求:-

然后安装软件, 重新启动或重新启动计算机后,然后安装所需的软件包

这是一个相当长的过程,因此请确保您有大约 2-3 小时的时间来设置(取决于您的互联网和计算机状况)。我花了大约 2 个小时来设置所有东西

如果这不起作用,请不要沮丧,因为这发生在我个人身上,然后再次运行该过程并成功安装。

希望这会有所帮助...如果没有请告诉我。

【讨论】:

  • 老兄,它是 3.38gb
  • 我大约一周前安装了这个,所以没有正确记住它@codebyAbhishekBharti。感谢您纠正我。
猜你喜欢
  • 2018-08-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-08
相关资源
最近更新 更多