title: Error in electron-rebuild serialport on Windows
body: <p>I am developing a project with <a href="http://electron.atom.io/" rel="nofollow noreferrer" title="Electron">Electron</a> and <a href="https://github.com/EmergingTechnologyAdvisors/node-serialport" rel="nofollow noreferrer" title="serialport">serialport</a>. </p>
  
  <p>The serialport library doesn't work automatically. Searching in the Readme.md, I figure out that is needed to recompile the library for the NodeJS version of electron, using the <a href="https://github.com/electron/electron-rebuild" rel="nofollow noreferrer" title="electron-rebuild">electron-rebuild</a> library. (Inserting this script in the package.json: <code>"install": "electron-rebuild"</code>).</p>
  
  <p>The electron-rebuild require a python installed in the computer, so I have installed through <a href="https://github.com/felixrieseberg/windows-build-tools" rel="nofollow noreferrer" title="windows-build-tools">windows-build-tools</a>. (installed globally)</p>
  
  <p>So now when I run the command <code>npm install</code> I receive this error:</p>
  
  <pre><code>× Rebuild Failed
  An unhandled error occurred inside electron-rebuild
  gyp ERR! configure error
  gyp ERR! stack Error: spawn C:\Users\Leonardo Guimar�es\.windows-build-tools\python27\python.exe ENOENT
  gyp ERR! stack     at exports._errnoException (util.js:1022:11)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
  gyp ERR! stack     at onErrorNT (internal/child_process.js:359:16)
  gyp ERR! stack     at _combinedTickCallback (internal/process/next_tick.js:74:11)
  gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:98:9)
  gyp ERR! System Windows_NT 10.0.14393
  gyp ERR! command "D:\\nodejs\\node.exe" "D:\\ElectronWorkspace\\PATH_TO_App\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=1.5.0" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=serialport" "--module_path=D:\\ElectronWorkspace\\PATH_TO_App\\node_modules\\serialport\\build\\Release" "--host=https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7"
  gyp ERR! cwd D:\ElectronWorkspace\PATH_TO_App\node_modules\serialport
  gyp ERR! node -v v6.9.4
  gyp ERR! node-gyp -v v3.5.0
  gyp ERR! not ok
  
  Failed with exit code: 1
  
  Error: gyp ERR! configure error
  gyp ERR! stack Error: spawn C:\Users\Leonardo Guimar�es\.windows-build-tools\python27\python.exe ENOENT
  gyp ERR! stack     at exports._errnoException (util.js:1022:11)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
  gyp ERR! stack     at onErrorNT (internal/child_process.js:359:16)
  gyp ERR! stack     at _combinedTickCallback (internal/process/next_tick.js:74:11)
  gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:98:9)
  gyp ERR! System Windows_NT 10.0.14393
  gyp ERR! command "D:\\nodejs\\node.exe" "D:\\ElectronWorkspace\\PATH_TO_App\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=1.5.0" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=serialport" "--module_path=D:\\ElectronWorkspace\\PATH_TO_App\\node_modules\\serialport\\build\\Release" "--host=https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7"
  gyp ERR! cwd D:\ElectronWorkspace\PATH_TO_App\node_modules\serialport
  gyp ERR! node -v v6.9.4
  gyp ERR! node-gyp -v v3.5.0
  gyp ERR! not ok
  
  Failed with exit code: 1
      at SafeSubscriber.obs.subscribe.e [as _error] (D:\ElectronWorkspace\PATH_TO_App\node_modules\spawn-rx\lib\index.js:311:43)
      at SafeSubscriber.__tryOrUnsub (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:223:16)
      at SafeSubscriber.error (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:184:26)
      at Subscriber._error (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:128:26)
      at Subscriber.error (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:102:18)
      at MapSubscriber.Subscriber._error (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:128:26)
      at MapSubscriber.Subscriber.error (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:102:18)
      at SafeSubscriber.pipesClosed.subscribe [as _next] (D:\ElectronWorkspace\PATH_TO_App\node_modules\spawn-rx\lib\index.js:284:42)
      at SafeSubscriber.__tryOrSetError (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:232:16)
      at SafeSubscriber.next (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:174:27)
      at Subscriber._next (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:125:26)
      at Subscriber.next (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:89:18)
      at ReduceSubscriber._complete (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\operator\reduce.js:116:30)
      at ReduceSubscriber.Subscriber.complete (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:114:18)
      at MergeAllSubscriber._complete (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\operator\mergeAll.js:94:30)
      at MergeAllSubscriber.Subscriber.complete (D:\ElectronWorkspace\PATH_TO_App\node_modules\rxjs\Subscriber.js:114:18)
  </code></pre>
  
  <p>How can I compile this library?
  Thanks in advance!</p>