A compressor comprising: a rotary shaft that extends in an axis direction and rotates around an axis; a housing that extends in the axis direction and houses the rotary shaft; a motor having a motor rotor that is provided on an outer peripheral surface of the rotary shaft and a motor stator that is provided in the housing so as to surround the motor rotor; a first compression mechanism that is housed in the housing and is disposed at one end portion of the rotary shaft to compress a refrigerant; wherein the housing has a housing main body formed in a tubular shape and having a first open end disposed on one side in the axis direction and a second open end disposed on the other side in the axis direction, a first lid portion fixed to the housing main body by a first bolt from the one side in the axis direction so as to close the first open end, and a second lid portion fixed to the housing main body by a second bolt from the other side in the axis direction so as to close the second open end, the first compression mechanism is fixed to the housing main body by a third bolt from the one side in the axis direction, characterised in that the compressor comprises a second compression mechanism that is housed in the housing and is disposed at the other end portion of the rotary shaft to further compress the refrigerant compressed by the first compression mechanism, and wherein the second compression mechanism is fixed to the housing main body by a fourth bolt from the other side in the axis direction, wherein the housing main body has a second end surface that is disposed on the other side in the axis direction, the second end surface is a plane orthogonal to the axis direction, the second lid portion is in contact with an outer region of the second end surface disposed outside an inner region of the second end surface so as to expose the inner region, a fourth bolt hole for fastening the fourth bolt is formed in the inner region, and a second bolt hole for fastening the second bolt is formed in the outer region. a rotary shaft that extends in an axis direction and rotates around an axis; a housing that extends in the axis direction and houses the rotary shaft; a motor having a motor rotor that is provided on an outer peripheral surface of the rotary shaft and a motor stator that is provided in the housing so as to surround the motor rotor; a first compression mechanism that is housed in the housing and is disposed at one end portion of the rotary shaft to compress a refrigerant; wherein the housing has a housing main body formed in a tubular shape and having a first open end disposed on one side in the axis direction and a second open end disposed on the other side in the axis direction, a first lid portion fixed to the housing main body by a first bolt from the one side in the axis direction so as to close the first open end, and a second lid portion fixed to the housing main body by a second bolt from the other side in the axis direction so as to close the second open end, the first compression mechanism is fixed to the housing main body by a third bolt from the one side in the axis direction, characterised in that the compressor comprises a second compression mechanism that is housed in the housing and is disposed at the other end portion of the rotary shaft to further compress the refrigerant compressed by the first compression mechanism, and wherein the second compression mechanism is fixed to the housing main body by a fourth bolt from the other side in the axis direction, wherein the housing main body has a second end surface that is disposed on the other side in the axis direction, the second end surface is a plane orthogonal to the axis direction, the second lid portion is in contact with an outer region of the second end surface disposed outside an inner region of the second end surface so as to expose the inner region, a fourth bolt hole for fastening the fourth bolt is formed in the inner region, and a second bolt hole for fastening the second bolt is formed in the outer region.