我正在尝试在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和其他地方的数量让我没有接近答案。这是我尝试过的:
setuptools
,所以我已经这样做了。尽管有其他问题的答案已经说过,但上述任何一项都没有任何影响。
怎么了?我主要是一个Linux用户,所以Windows问题往往让我感到困惑。
我最近有一个类似的问题,通过做this修复,基本上:
安装Visual Studio 2017的构建工具,选择工作负载“Visual C ++构建工具”并检查选项“C ++ / CLI支持”和“VC ++ 2015.3 v14.00(v140)桌面工具集”
希望能帮助到你