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

Posted it-ren

tags:

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

在执行 yarn start时遇到问题, 最后一行提示
 Run `npm rebuild node-sass` to download the binding for your current environment.

 

于是按提示操作   输入命令  npm rebuild node-sass 的时候有时会遇到错误 

 

1 Error: Cant find Python executable "python", you can set the PYTHON env variable

 

导致安装部分包错误,于是百度找到了解决的办法

 

解决环境: Windows 7 64位操作系统 

1 cnpm install --global --production windows-build-tools

 

其他平台解决办法 https://github.com/nodejs/node-gyp

以上是关于解决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

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

数据库迁移后报错提示MySQL Error:Can''t find file errno: 13 - Permission denied的解决方法

Spring: error at ::0 can‘t find referenced pointcut的错误并解决

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

Environment error: “CodeBloks can't find compiler executable in your configured search path'