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

最近从git拉代码下来遇到一个这样的问题记录一下

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

看了一下很简单就是node某些包需要python环境的支持,所以我们进行安装就好了

!!!记得使用管理员模式的windows shell 来安装支持

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

 cnpm install --global node-gyp

 

 

安装好了之后,如果不在添加python变量到系统环境会出现这个问题。所以记得在系统环境变量下面添加一下python环境变量

posted @ 2022-04-06 13:37  CPPLC  阅读(4417)  评论(0编辑  收藏  举报