解决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: Can‘t 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的主要内容,如果未能解决你的问题,请参考以下文章