A compressor, comprising: a casing ; an electric motor housed in an internal space (M) of the casing ; a drive shaft rotated by the electric motor ; and a compression mechanism driven by the drive shaft to compress a refrigerant and discharge the compressed refrigerant to the internal space (M), the internal space (M) including a first space (M1) formed near one axial end of the electric motor , and a second space (M2) formed near another axial end of the electric motor , the electric motor including a stator and a rotating member , the stator being fixed to the casing , the rotating member including a rotor rotatably inserted into the stator , the electric motor having a refrigerant flow path through which the first and second spaces (M1) and (M2) communicate with each other, the refrigerant flow path including: a first flow path (F1) into which the refrigerant in the first space (M1) or the second space (M2) flows; and a rotor flow path extending axially across the rotor and connected to an outflow end of the first flow path (F1), the first flow path (F1) being configured to reduce or facilitate a flow of oil contained in the refrigerant into the refrigerant flow path and including a second flow path (F2) extending radially outward of the rotor from the rotor flow path , or a third flow path (F3) extending radially inward of the rotor from the rotor flow path . a casing ; an electric motor housed in an internal space (M) of the casing ; a drive shaft rotated by the electric motor ; and a compression mechanism driven by the drive shaft to compress a refrigerant and discharge the compressed refrigerant to the internal space (M), the internal space (M) including a first space (M1) formed near one axial end of the electric motor , and a second space (M2) formed near another axial end of the electric motor , the electric motor including a stator and a rotating member , the stator being fixed to the casing , the rotating member including a rotor rotatably inserted into the stator , the electric motor having a refrigerant flow path through which the first and second spaces (M1) and (M2) communicate with each other, the refrigerant flow path including: a first flow path (F1) into which the refrigerant in the first space (M1) or the second space (M2) flows; and a rotor flow path extending axially across the rotor and connected to an outflow end of the first flow path (F1), the first flow path (F1) being configured to reduce or facilitate a flow of oil contained in the refrigerant into the refrigerant flow path and including a second flow path (F2) extending radially outward of the rotor from the rotor flow path , or a third flow path (F3) extending radially inward of the rotor from the rotor flow path . a first flow path (F1) into which the refrigerant in the first space (M1) or the second space (M2) flows; and a rotor flow path extending axially across the rotor and connected to an outflow end of the first flow path (F1), the first flow path (F1) being configured to reduce or facilitate a flow of oil contained in the refrigerant into the refrigerant flow path and including a second flow path (F2) extending radially outward of the rotor from the rotor flow path , or a third flow path (F3) extending radially inward of the rotor from the rotor flow path . <EOS>