title: NPM install can't execute Python in MAC
body: <p>I'm new to MAC (OSX version is High Sierra 10.13.3). I installed python 3.6.5 with the installer from python.org and I tried doing it with brew too by running <code>brew install python</code>. Now, I'm trying to run <code>sudo npm install</code> in a Angular project and I get the following errors:</p>
  
  <pre><code>gyp verb check python checking for Python executable "/path/to/python3/python" in the PATH
  gyp verb `which` failed Error: not found: /path/to/python3/python
  gyp ERR! stack Error: Can't find Python executable "/path/to/python3/python", you can set the PYTHON env variable.
  </code></pre>
  
  <p>I have tried all the answers in here : </p>
  
  <p><a href="https://stackoverflow.com/questions/6819661/python-location-on-mac-osx">python location on mac osx</a></p>
  
  <p><a href="https://stackoverflow.com/questions/23571257/cant-find-python-executable-python">Can&#39;t find Python executable &quot;python&quot;</a></p>
  
  <p>Inside of my projects folder I do the following: </p>
  
  <p>when I type 'which python' I get:</p>
  
  <pre><code>/usr/local/opt/python/libexec/bin/python
  </code></pre>
  
  <p>When I type 'which python3.6.5' I get:</p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
  </code></pre>