A lead wire of a motor is prevented from being damaged, and the
reliability of an electric compressor is enhanced. The electric
compressor 1 is provided with a division wall 80b which divides a
discharge chamber 62 and a connection space 65 which connects a sealed
terminal 90 and a lead wire 5c of a motor 5. With this configuration, it
is possible to prevent discharge gas from directly flowing into the
connection space 65, and to prevent the discharge gas from flowing into a
wire passage 64 through which the lead wire 5c is passed. Therefore,
vibration of lead wire 5c caused by gas pulse can be suppressed, the lead
wire can be prevented from being damaged, and the reliability of the
electric compressor can be enhanced.