首页 > 编程语言 > 详细

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

时间:2019-01-04 13:57:57      阅读:3487      评论:0      收藏:0      [点我收藏+]

错误原因: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.解决办法

原文:https://www.cnblogs.com/hcx123/p/10219129.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!