I think it can be done with the AC compressor installed, but it's way easier if you move it out of the way.
Replace the bypass hose (with screw clamps) and thermostat while you're in there.