A scroll compressor comprising: a scroll compression mechanism configured to compress a refrigerant; a motor configured to drive the scroll compression mechanism; and a casing housing the scroll compression mechanism and the motor, the motor including: a stator including a stator core and an insulator ; a rotor disposed inside the stator; a coil wound around a plurality of teeth of the stator core via the insulator; and an outgoing line provided at an end of the coil, the outgoing line being a lead wire connecting the coil to a terminal for supplying electric power to the coil characterized in that , when the motor is viewed along a rotation axis (O) of the rotor, the outgoing line and/or a film wound around the outgoing line satisfies a relationship of: 0.65 < D 1 − da / D 1 − D 2 < 0.95 , where an outer radius of the teeth centered on a position of the rotation axis of the rotor is D1, and an inner radius of the teeth is D2, and da is an average of distance d, wherein the distance d is a minimum distance from the rotation axis (O) to the outgoing line in a plan view, which varies in a circumferential direction, or, in a case where a film is wound around the outgoing line , a minimum distance from the rotation axis (O) to the film wound around the outgoing line in a plan view, which varies in a circumferential direction. a scroll compression mechanism configured to compress a refrigerant; a motor configured to drive the scroll compression mechanism; and a casing housing the scroll compression mechanism and the motor, the motor including: a stator including a stator core and an insulator ; a rotor disposed inside the stator; a coil wound around a plurality of teeth of the stator core via the insulator; and an outgoing line provided at an end of the coil, the outgoing line being a lead wire connecting the coil to a terminal for supplying electric power to the coil characterized in that , when the motor is viewed along a rotation axis (O) of the rotor, the outgoing line and/or a film wound around the outgoing line satisfies a relationship of: 0.65 < D 1 − da / D 1 − D 2 < 0.95 , where an outer radius of the teeth centered on a position of the rotation axis of the rotor is D1, and an inner radius of the teeth is D2, and da is an average of distance d, wherein the distance d is a minimum distance from the rotation axis (O) to the outgoing line in a plan view, which varies in a circumferential direction, or, in a case where a film is wound around the outgoing line , a minimum distance from the rotation axis (O) to the film wound around the outgoing line in a plan view, which varies in a circumferential direction. a stator including a stator core and an insulator ; a rotor disposed inside the stator; a coil wound around a plurality of teeth of the stator core via the insulator; and an outgoing line provided at an end of the coil, the outgoing line being a lead wire connecting the coil to a terminal for supplying electric power to the coil characterized in that , when the motor is viewed along a rotation axis (O) of the rotor, the outgoing line and/or a film wound around the outgoing line satisfies a relationship of: 0.65 < D 1 − da / D 1 − D 2 < 0.95 , where an outer radius of the teeth centered on a position of the rotation axis of the rotor is D1, and an inner radius of the teeth is D2, and da is an average of distance d, wherein the distance d is a minimum distance from the rotation axis (O) to the outgoing line in a plan view, which varies in a circumferential direction, or, in a case where a film is wound around the outgoing line , a minimum distance from the rotation axis (O) to the film wound around the outgoing line in a plan view, which varies in a circumferential direction. <EOS>