An X-ray generator installation housing, comprising a housing body, a flange fixedly provided on an inner wall of the housing body and having a cross section with an outer profile formed in a circular shape and a compensation device fixedly or movably connected with the flange in a liquid tight manner, wherein: said housing body comprises a housing main body and a first housing cover and a second housing cover hermetically fixed on two opposite ports of the housing main body respectively; a liquid receiving cavity for receiving an insulating liquid is formed between one side of two opposite sides of said compensation device and said inner wall of the housing body as well as said flange;a compensation device moving space for allowing said compensation device to deform or move toward a direction away from or close to said insulating liquid is formed between another side of said two opposite sides of said compensation device opposed to said inner wall of the housing body and an inner wall of the flange, the flange being located on one housing cover of the first housing cover and the second housing cover and extending from the one housing cover by a distance in a direction from the one housing cover to the other of the first housing cover and the second housing cover so as to surround the compensation device moving space; said compensation device is an elastic drum membrane which is able to fixedly connect with a port of said flange away from said inner wall of the housing body and cover on the port of said flange away from said inner wall of the housing body, said elastic drum membrane is able to deform within said compensation device moving space toward the direction away from or close to said insulating liquid; the X-ray generator installation housing further comprises a pressing plate provided at a side of said elastic drum membrane facing the insulating liquid received in the housing body, an edge of said elastic drum membrane is pressed against onto said flange by an edge of said pressing plate, said edge of the pressing plate is fixedly connected with said flange through fasteners, a central region of said pressing plate is provided with one or two or more through holes through which the insulating liquid is freely passed. said housing body comprises a housing main body and a first housing cover and a second housing cover hermetically fixed on two opposite ports of the housing main body respectively; a liquid receiving cavity for receiving an insulating liquid is formed between one side of two opposite sides of said compensation device and said inner wall of the housing body as well as said flange;a compensation device moving space for allowing said compensation device to deform or move toward a direction away from or close to said insulating liquid is formed between another side of said two opposite sides of said compensation device opposed to said inner wall of the housing body and an inner wall of the flange, the flange being located on one housing cover of the first housing cover and the second housing cover and extending from the one housing cover by a distance in a direction from the one housing cover to the other of the first housing cover and the second housing cover so as to surround the compensation device moving space; said compensation device is an elastic drum membrane which is able to fixedly connect with a port of said flange away from said inner wall of the housing body and cover on the port of said flange away from said inner wall of the housing body, said elastic drum membrane is able to deform within said compensation device moving space toward the direction away from or close to said insulating liquid; the X-ray generator installation housing further comprises a pressing plate provided at a side of said elastic drum membrane facing the insulating liquid received in the housing body, an edge of said elastic drum membrane is pressed against onto said flange by an edge of said pressing plate, said edge of the pressing plate is fixedly connected with said flange through fasteners, a central region of said pressing plate is provided with one or two or more through holes through which the insulating liquid is freely passed.