In an electric compressor, in which an electric motor and a compressor driven
thereby are integrated, in order to prevent a reduction in the durability of the
electric motor and the like due to heat conducted from heat radiating bodies such
as drive circuits, a fluid, prior to being taken into the compressor portion, is
circulated through the electric motor portion as a medium for cooling. In this
case, a plurality of cooling medium passages for example are provided parallel
to the axis of rotation, and the endothermic capacity of passages formed in the
vicinity of heat radiating bodies is made greater than the endothermic capacity
of passages formed in other portions.