在Windows下编译sklearn源码,主要注意二点:html
若是环境没有搭建好,最多见的报错,就是"error: Unable to find vcvarsall.bat"python
以Python 3.5 为例,在默认安装VisualStudio时,一般没有选择Python tools这一项,于是,从新安装VisualStudio,选择自定义,而后勾选如下选项,如图:git
python setup.py build_ext -iui |
python setup.py installhtm |
必定要使用build_ext 命令,若是一开始使用了install,那也不要紧,再次使用build_ext,最后再来使用install安装。blog
参考:ci