The invention relates to a medical ventilator or anesthetic machine comprising a blower (11), which is provided with an electric motor (19) and at least one compressor wheel (15), driven by the electric motor and in a blower housing (13) for the compression of ventilating gas. In the case of the blower and the electric motor (19) lies against a first housing wall (21) of the blower housing (13), which is produced from a material with good thermal conduction, in particular metal and preferably aluminum. An air duct for the compressed ventilating gas is formed directly adjacent to the first housing wall (21), between this first housing wall (21) and a second housing wall (25). According to the invention and the first housing wall (21) of the blower housing is connected to at least one HEAT pipe (47), which is connected to a cooling element (55). In this way and the HEAT from the blower can be removed to a location of the ventilator which can be cooled in a controlled manner. At this location and a cooling element is arranged in an actively ventilated ventilation duct. This achieves acoustic encapsulation of the blower.