Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法

Posted 爱笑的向日葵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法相关的知识,希望对你有一定的参考价值。

错误原因:Node.js 在安装模块的时候报错,缺少python环境。

解决办法:

第一种方式:

安装Python及环境变量配置

一定要安装python2.7的版本

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

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

第二种方式:

运行下面的代码:

npm install --global --production windows-build-tools

以上是关于Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 1133 42000 Can't find any matching row in the user

error at ::0 can't find referenced pointcut解决办法(转载)

解决Error: Can't find Python executable "python", you can set the PYTHON env variable(示例

解决Error: Can't find Python executable "python", you can set the PYTHON env variable

ceph 源码安装 configure: error: "Can't find boost spirit headers"

Install fail! Error: [xlsx@0.8.1] Can't find package xlsx's version: 0.8.1