when the circuit breaker trips it is difficult to switch the breaker to the back on position.
How hard?
You are turning the compressor off before you try to switch the breaker back on, right? (This might seem obvious, and probably should be, but some people are pretty unfamiliar with this stuff and it never hurts to make sure)
Are you flipping the tripped breaker off before you try to flip it back on? This typically is what you would do and if you're trying to flip it straight back to on, maybe that would be excessively difficult.
What kind of panel (both brand and series e.g. Square D Homeline, Eaton/Bryant BR, Eaton/Cutler-Hammer CH, etc.) and what is the age of the panel?
Does it make any difference if you wait a minute after it trips (or are you already doing so)?
Have other breakers of yours tripped and are other breakers in your box easier to reset?
You said it's a shared line - what's on it? If you've got other stuff still hooked up, it'll be harder to reset. Turn off or temporarily unplug most or all of the stuff on the circuit before you reset the breaker and see if that helps.