A motor-driven compressor comprising: a compression mechanism compressing refrigerant gas; an electric motor driving the compression mechanism; a housing made of a thermally conductive material and accommodating the compression mechanism and the electric motor; and an inverter assembly (5, 205) controlling rotation of the electric motor, wherein the inverter assembly (5, 205) includes: an elastic member (15, 215) made of a thermally conductive material and disposed in contact with the housing; a circuit board supported directly by the elastic member (15, 215); an electronic part (10, 11) mounted on one surface of the circuit board whose opposite surface faces the housing; and a base member made of a thermally conductive material, including a closed end remote from the housing, a peripheral wall, and an opened end fixed to the housing, the base member fixing the electronic part (10, 11), wherein the base member and the housing cooperate to form an accommodation space that accommodates the elastic member, the circuit board and the electronic part (10, 11), wherein the closed end of the base member and the elastic member (15, 215) form therebetween a space (13, 213), wherein the inverter assembly (5, 205) further includes glue made of a thermally conductive material or an adhesive sheet made of a thermally conductive material, wherein the electronic part (10, 11) is fixed to the base member through the glue or the adhesive sheet, wherein the elastic member (15, 215) is disposed between the circuit board and the housing, wherein the electronic part (10, 11) is fixed to the closed end, and wherein the glue or the adhesive sheet is spaced away from the circuit board. a compression mechanism compressing refrigerant gas; an electric motor driving the compression mechanism; a housing made of a thermally conductive material and accommodating the compression mechanism and the electric motor; and an inverter assembly (5, 205) controlling rotation of the electric motor, wherein the inverter assembly (5, 205) includes: an elastic member (15, 215) made of a thermally conductive material and disposed in contact with the housing; a circuit board supported directly by the elastic member (15, 215); an electronic part (10, 11) mounted on one surface of the circuit board whose opposite surface faces the housing; and a base member made of a thermally conductive material, including a closed end remote from the housing, a peripheral wall, and an opened end fixed to the housing, the base member fixing the electronic part (10, 11), wherein the base member and the housing cooperate to form an accommodation space that accommodates the elastic member, the circuit board and the electronic part (10, 11), wherein the closed end of the base member and the elastic member (15, 215) form therebetween a space (13, 213), wherein the inverter assembly (5, 205) further includes glue made of a thermally conductive material or an adhesive sheet made of a thermally conductive material, wherein the electronic part (10, 11) is fixed to the base member through the glue or the adhesive sheet, wherein the elastic member (15, 215) is disposed between the circuit board and the housing, wherein the electronic part (10, 11) is fixed to the closed end, and wherein the glue or the adhesive sheet is spaced away from the circuit board. an elastic member (15, 215) made of a thermally conductive material and disposed in contact with the housing; a circuit board supported directly by the elastic member (15, 215); an electronic part (10, 11) mounted on one surface of the circuit board whose opposite surface faces the housing; and a base member made of a thermally conductive material, including a closed end remote from the housing, a peripheral wall, and an opened end fixed to the housing, the base member fixing the electronic part (10, 11), wherein the base member and the housing cooperate to form an accommodation space that accommodates the elastic member, the circuit board and the electronic part (10, 11), wherein the closed end of the base member and the elastic member (15, 215) form therebetween a space (13, 213), wherein the inverter assembly (5, 205) further includes glue made of a thermally conductive material or an adhesive sheet made of a thermally conductive material, wherein the electronic part (10, 11) is fixed to the base member through the glue or the adhesive sheet, wherein the elastic member (15, 215) is disposed between the circuit board and the housing, wherein the electronic part (10, 11) is fixed to the closed end, and wherein the glue or the adhesive sheet is spaced away from the circuit board.