The compressor unit illustrated in FIG. 1 comprises a centrifugal compressor 1 for compressing a gas, for example process gas, having a rotor 2 with one or more, in this case three, compressor impellers 3 and an electric motor 4 having a stator 5 and a rotor 6 for driving the rotor 2 of the compressor.