Tuesday, February 2, 2016

f2py gcc.exe: error: CreateProcess: No such file or directory

Again, for unclear reasons my f2py stopped working. Scripts that I could compile previously could not be compiled anymore. Without knowing why it stopped working, or why my proposed fix worked, I just wanted to let you know that I did to get f2py to work again on my windows x64 pc for python 2.7.


  • Upgrade to the latest Python version (for me 2.7.10 worked). Download and install:
  • Remove the old mingw version and download and install:
  • 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.