【发布时间】:2015-07-13 01:35:58
【问题描述】:
我是 Python 新手,正在尝试安装 Python 的库 scikit-learn,但出现以下错误:
building data_files sources
build_src: building npy-pkg config files
running build_py
running build_clib
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_clib
building 'libsvm-skl' library
compiling C sources
error: Unable to find vcvarsall.bat
我使用python 2.7,我从http://scikit-learn.org/dev/install.html下载了scikit-learn
【问题讨论】:
-
您的系统中是否安装了 Visual Studio?应该构建一些库,如 Numpy,以安装 sklearn。
-
这个出色的答案有帮助吗? stackoverflow.com/a/18018539/2272172