Python,安装失败。退出代码:1 windows 10

Python, failed to install. Exit code: 1 windows 10

所以,我反复研究了这个问题,我尝试了这个论坛上的几个解决方案,none 奏效了。

我安装了 pip3,Python 3.4,Visual Studio 2015 Windows 10.

现在,每当我 运行 手动或通过 pip3 安装新模块时,我都会收到以下错误:

假设我这样使用 cmdline:

pip3 install numpy

我得到:

error: Unable to find vcvarsall.bat

----------------------------------------
Command "c:\users\ariel\appdata\local\programs\python\python35-32\python.exe -c 
"import setuptools, tokenize;__file__='C:\Users\Ariel
\AppData\Local\Temp\pip-build-41rz6w_o\numpy\setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
.replace('\r\n', '\n'), __file__, 'exec'))" install --record 
C:\Users\Ariel\AppData\Local\Temp\pip-vuq3ap0m-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1
in C:\Users\Ariel\AppData\Local\Temp\pip-build-41rz6w_o\numpy

如果我下载它并运行它来自文件夹

 setup.py install

我明白了

build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
error: Unable to find vcvarsall.bat

请帮助,考虑仅将 linux 与 python 一起使用...减少问题

这是基于@Jim 在评论区的回答,基本上确保你安装了 C++ 编译器 windows SDK!

我的问题是,当我安装 Visual Studio 时,我没有 select windows SDK。