title: How to fix pip for Python 3.5 not compiling extensions on Windows x64
body: <p>There are many questions on here about problems with pip installing Python extensions which require C++ compilation. However many of these solutions are out of data as of Python 3.5.</p>
  
  <p>Mostly these problems revolve around the missing vcvarsall.bat problem that comes with not installing Microsoft Visual Studio or not installing the right version.</p>
  
  <p>Having dealt with this issue I am now faced with a value error when I try to install these module through pip.</p>
  
  <p>Can anyone provide a canonical method to get a fresh install of Python 3.5 x64 on a fresh install of Windows (Windows 7 x64 in my case) to be able to correctly install modules through pip that require compilation?</p>
  
  <p>For reference here is the error I am currently getting while attempting to install matplotlib (note the error is being caused by pip attempting to update numpy as it is required by matplotlib)</p>
  
  <pre><code>  vc_env = query_vcvarsall(VERSION, plat_spec)
    File "C:\Python34\lib\site-packages\setuptools\msvc9_support.py", line 52,
  in query_vcvarsall
      return unpatched['query_vcvarsall'](version, *args, **kwargs)
    File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
      raise ValueError(str(list(result.keys())))
  ValueError: ['path']
  </code></pre>