安装Twisted:错误:需要Microsoft Visual C ++ 14.0

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

我正在尝试在Windows 10机器上安装channels。我一直收到以下错误:

$ pip install --user channels
... Stuff here
    building 'twisted.test.raiser' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\uscs\\AppData\\Local\\Temp\\pip-install-tgzm6i1z\\twisted\\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:\Users\uscs\AppData\Local\Temp\pip-record-d1l_mx2x\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\uscs\AppData\Local\Temp\pip-install-tgzm6i1z\twisted\

在互联网上搜索SO和其他地方的数量让我没有接近答案。这是我尝试过的:

  1. 安装VS构建工具。几乎我在这个主题上发现的一切都已经过时了,关于VS 2015,所以我在这里飞得有些失明。错误信息不足以说明我需要哪些无数工具,所以这就是我安装的内容: Visual Studio构建工具2019 C ++构建工具 MSVC v142 - VS 2019 C ++ x64 / x86构建工具(v14.20) Windows 10 SDK 适用于Windows的C ++ CMake工具 测试工具核心功能 - 构建工具 Visual Studio构建工具2017 Visual C ++构建工具的核心功能 VC ++ 2017 15.9 v14.16最新的v141工具 其他东西和上面一样
  2. 在其他阅读中,我读过有时需要升级setuptools,所以我已经这样做了。
  3. 我重新启动了很好的措施。

尽管有其他问题的答案已经说过,但上述任何一项都没有任何影响。

怎么了?我主要是一个Linux用户,所以Windows问题往往让我感到困惑。

python-3.x windows twisted visual-studio-2017-build-tools
1个回答
0
投票

我最近有一个类似的问题,通过做this修复,基本上:

安装Visual Studio 2017的构建工具,选择工作负载“Visual C ++构建工具”并检查选项“C ++ / CLI支持”和“VC ++ 2015.3 v14.00(v140)桌面工具集”

希望能帮助到你

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