- Upgrade to the latest Python version (for me 2.7.10 worked). Download and install:
- Remove the old mingw version and download and install:
- http://sourceforge.net/projects/mingw-w64/
- (make sure when you install, the arcitecture flag is set to "x86_64")
- Open the system environment variables, remove old references to mingw, and add the '.../mingw/bin' path to your Path variable. For me that was "C:\Program Files\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin"
Optionally restart the pc or open a new DOS shell and run f2py. This worked for me.