<p>A fluid machine, wherein an oil separating mechanism (70) separating a lubricating oil from a fluid discharged from a compressing mechanism (40) is installed between the compressing mechanism (40) and an electric motor (26). The fluid discharged from the compressing mechanism (40) is discharged from a discharge tube (23) through the electric motor (26) after the lubricating oil contained in the fluid is removed by the oil separating mechanism (70) installed between the electric motor (26) and the compressing mechanism (40).</p>