“WinError 2 The system cannot find the file specified” when trying to run Fortran
The command Popen expects a list of strings for non-shell calls and a string for shell calls. Call subprocess.Popen with shell=True: process = subprocess.Popen(command, stdout=tempFile, shell=True) Hopefully this solves your issue. This issue is listed here: https://bugs.python.org/issue17023