# Location of Python install for Node

**URL:** <https://travis-ci.community/t/location-of-python-install-for-node/563>\
**Category:** Windows\
**Created:** [October 30, 2018, 1:35pm UTC](https://travis-ci.community/t/location-of-python-install-for-node/563 "2018-10-30T13:35:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuef](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/joshuef/32/190_2.png) [@joshuef](https://travis-ci.community/u/joshuef)\
**Post date:** [October 30, 2018, 1:35pm UTC](https://travis-ci.community/t/location-of-python-install-for-node/563/1 "2018-10-30T13:35:38Z")

</div>

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

```auto
[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:

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

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![joaocgreis](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/joaocgreis/32/435_2.png) [@joaocgreis](https://travis-ci.community/u/joaocgreis)\
**Post date:** [November 12, 2018, 11:49pm UTC](https://travis-ci.community/t/location-of-python-install-for-node/563/2 "2018-11-12T23:49:31Z")

</div>

Hi @joshuef,

The line you’re looking for might be

```auto
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](https://travis-ci.community/t/windows-build-failed-actually-it-was-done-success/611)
