Python,安装失败.退出代码:1 Windows 10 [英] Python, failed to install. Exit code: 1 windows 10
问题描述
因此,我来回研究了这个问题,我在该论坛上尝试了几种解决方案,但没有一个起作用.
So, I have going over this back and forth, I tried several of the solutions on this forum, none worked.
我在Windows 10上安装了pip3,Python 3.4,Visual Studio 2015.
I have pip3 installed, Python 3.4, Visual Studio 2015 on Windows 10.
现在,每当我手动或通过pip3运行新模块的安装程序时,都会出现以下错误:
Now whenever I run the installing for a new module manually or through pip3 I get the following error:
说我这样使用cmdline:
Say I use the cmdline as such:
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
如果我下载并从文件夹运行它
If I download it and run it from the folder
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一起使用...问题更少
Please help, considering to just use linux with python... less issues
推荐答案
这是基于注释部分中的@Jim答案的,基本上请确保您已安装Cstrong编译器和 Windows SDK!
This is based on @Jim answers in the comment section, basically make sure that you have the C++ compiler and windows SDK installed!
我的问题是,当我安装Visual Studio时,没有选择Windows SDK.
My problem was that when I installed Visual Studio, I did not select the windows SDK.
这篇关于Python,安装失败.退出代码:1 Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!