安装scikit-learn遇到错误:unable to find vcvarsall.bat

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/github_35768306/article/details/52104461

在github上下载压缩包 https://github.com/scikit-learn/scikit-learn

解压后,进入该目录,在命令行中中输入:setup.py install
balalalalalalal最后出现一行error:unable to find vcvarsall.bat
问题原因:我的VC版本不对

解决办法:下载补丁
补丁下载地址:https://www.microsoft.com/en-us/download/details.aspx?id=44266

补丁下载安装完成后,在命令行输入:pip install sklearn

finally~

猜你喜欢

转载自blog.csdn.net/github_35768306/article/details/52104461