Solutions

listing the loaded modules

jupyter-user:$module list
No Modulefiles Currently Loaded.

unload

We can see the path containg the openMPI binaries has been removed from the $PATH variable ,and which mpif90 can no longer find the mpif90 binary.