2016-01-13 23 views
2

所以,我已经回顾了这个问题,我尝试了几个在这个论坛上的解决方案,但都没有成功。Python,未能安装。退出代码:1 windows 10

我已经安装了PIP 3,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 

请帮帮忙,考虑到只使用与Python的Linux ...少的问题

+0

检查此帖:http://stackoverflow.com/questions/19830942/pip-install-gives-error-unable-to-find-vcvarsall-bat – Jaco

+0

@Jaco我试过'easy_install',我仍然收到'错误:安装脚本退出的错误:无法找到vcvarsall.bat' – asosnovsky

+0

您需要安装https://www.microsoft.com/en-us/download/details.aspx?id=8279 – Jaco

回答

2

这是基于@Jim在注释部分回答,基本上确保你已经安装了C++编译器 windows SDK!

我的问题是,当我安装Visual Studio时,我没有选择Windows SDK。