As illustrated in
The motor housing 15 has a peripheral wall 19 having a cylindrical shape, and a partition wall 20 that closes one end of the peripheral wall 19. The peripheral wall 19 and the partition wall 20 define a space accommodating the compression portion 12 and the electric motor 13. The partition wall 20 is joined to the inverter housing 18. The peripheral wall 19 has an inlet port 21 at a position close to the partition wall 20. The inlet port 21 takes in a refrigerant. The discharge housing 16 is joined to the other end of the peripheral wall 19. The refrigerant taken in from the inlet port 21 is sucked into the compression portion 12 to be compressed in the compression portion 12. The compressed refrigerant is discharged from the outlet port 17.