The interest is mentioned with so much sternly and harshly that no other thing is mentioned so, the Quran declares war against those not refraining from the same:
فان لم تفعلوا فأذنو بحرب من اللہ ورسولہ (البقرۃ)
Therefore, one should strive to get non-interest debt. If it is impossible, you can purchase the house through bank in a way that the bank includes the additional interest amount in interest and sells it to you on the total price.
If it is also not possible and you need the house exigently, then in cases or dire need, you can take loan from a bank. After paying the total amount, repent to Allah and ask His forgiveness.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband