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

created at 08-23-2021 views: 3

description

After pulling down the code, install the dependencies, and finally appear: Error: Can't find Python executable "python", you can set the PYTHON env variable.

Solution

Input: 

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

But an error was reported:

Please restart this script from an administrative PowerShell!

The build tools cannot be installed without administrative rights.

To fix, right-click on PowerShell and run "as Administrator"

solution

Run cmd as an administrator and enter the above command again.

created at:08-23-2021
edited at: 08-23-2021: