F2PY doesn't find a module
问题 I am having difficulty with getting a f2py compiled module work in Python. I have a piece of software written in Fortran that compiles well on a Linux 64bit machine. Further on F2Py compiles a Python module that uses Fortran bits as well. Here is how the Python module is compiled: f2py --fcompiler=gfortran -I"path-to-dir-with-mod-files" -c -m mod_landems mod_landem.f90 But once I want to import that module I get an error (in Ipython): ----> 1 import mod_landems ImportError: ./mod_landems.so: