A compressor having an internally mounted inverter and having improved
safety at low cost is provided. The compressor has a motor; a compressor
mechanism driven by the motor; a first housing section having an opening
and within which the motor is housed; a second housing section which is
mounted on the first housing section and which closes the opening; a
fixing member which fixes the second housing section to the first housing
section; a controller which is provided on the first housing section and
which controls the operation of the motor; a power supply section which
supplies power to the controller; a protective cover which covers the
controller; and a power source control apparatus which stops the supply
of power to the controller by the power supply section or carries out a
prescribed safety measure operation when the protective cover is removed
from the controller. The protective cover has a shape which restricts
manipulation of the fixing member by covering a manipulation section of
the fixing member when the controller is covered.