Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.

Problem description
Error: Can't find Python executable “python”, you can set the PYTHON env variable.
Insert picture description here

Solution
1. Install windows-build-tools under administrator authority
Insert picture description here

npm install --global --production windows-build-tools

reference:

https://github.com/nodejs/node-gyp

If you continue to report errors

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

You need to install Python and configure environment variables.
Download Python official website:
https://www.python.org/downloads/release/python-2718/
Reference:
https://blog.csdn.net/lyj_viviani/article/details/51763101

Guess you like

Origin blog.csdn.net/lqlq54321/article/details/108974606