所以,我反复地研究了这个问题,我在这个论坛上尝试了几个解决方案,但都没有奏效。
我在Windows 10上安装了pip3,Python3.4,Visual 2015。
现在,每当我手动或通过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.减去问题
发布于 2016-01-13 18:58:29
这是基于注释部分中的@Jim,基本上确保安装了C++编译器和 windows!
我的问题是,当我安装Visual时,没有选择windows。
https://stackoverflow.com/questions/34773621
复制相似问题