Location of Python install for Node


Hey, my build is failing as it can’t find Python. (https://travis-ci.org/joshuef/safe_browser/jobs/448298529)

[3] gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
[3] gyp ERR! stack     at PythonFinder.failNoPython (C:\ProgramData\nvs\node\8.12.0\x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)

I’ve tried setting it manually, but it didn’t help:

- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set python /Python27/python.exe --global;

Any ideas?


Hi @joshuef,

The line you’re looking for might be

if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cinst -y python2; fi

However, for me builds still fail at the end because of the issue reported in Windows build failed, actually it was done success