Fetching details from the dictionary...

there's no (other) way
cannot be helped; unavoidable; inevitable; (there's) nothing one can do; having no choice; it is what it is
it's no use (doing); pointless; useless; no good; insufficient; not enough
hopeless (person); annoying; troublesome; awful
cannot stand it; unbearable; cannot help (doing, feeling); dying (to do)
それもしょうがないことだ。
That too cannot be helped.
雨が降ったらしょうがないから諦めよう。
If it rains, it can't be helped so let's give up.
しょうがないので気持ちを切り替えた。
Since it could not be helped, she changed her mindset.