Gulp 安装Sass时出现错误 Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法

安装Sass时出现错误 Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法

解决办法:

第一种方式:

安装Python及环境变量配置

一定要安装python2.7的版本

环境变量安装可以参考:http://blog.csdn.net/lyj_viviani/article/details/51763101

如果第一种方式不行可以试试第二种方式。

第二种方式: 
运行下面代码

npm install --global --production windows-build-tools
原文地址:https://www.cnblogs.com/dxxzst/p/8932757.html