I am trying to run a simple Fortran subroutine using numpy.f2py
as described on: http://docs.scipy.org/doc/numpy/user/c-info.python-as-glue.html#calling-f2py-from-python
When I try to compile (f2py.compile(source, modulename='add')
) from python I get the following error:
"Could not locate executable C:Python27pythonw.exe
Executable C:Python27pythonw.exe does not exist"
Looking for this file I found that C:\Python27\pythonw.exe
does exist in my system, so could it possible be a problem with the path?
In any case, any advice on how to make my code work?