κατ' ἀνάγκην

From LSJ

πᾶσα οἰκία ὁπλιτῶν νένακτο → every house had been crammed with soldiers

Source

Greek > English (Woodhouse)

necessarily, by necessity