A module, configured to generate electric power inside a pipeline, in particular as the pipeline is being laid on the bed of a body of water, has a turbine configured to intercept an airflow fed in a travelling direction; and a rotating electric machine connected to the turbine, surrounding the turbine, and configured to produce electric power.