Student loans (from government) are halal. they are not untrustworthy loan sharks, or high interest scammers. that the only loan that you could get im afraid.
if you want to study and live in the real world, you need to learn to be in mixed men and women situations.
You can lower your gaze and politely refuse to shake hands or contact men, but other than that you working intellectually with men is not haram.