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.
在这里插入图片描述

解决办法
一.在管理员权限安装windows-build-tools
在这里插入图片描述

npm 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.

则需要进行安装Python及环境变量配置
下载Python官网:
https://www.python.org/downloads/release/python-2718/
参考:
https://blog.csdn.net/lyj_viviani/article/details/51763101

猜你喜欢

转载自blog.csdn.net/lqlq54321/article/details/108974606