It can be done, but to do it 'right' requires way more space, time, and money than you'll be interested in.
a 55 gallon tank with proper heating, a few hides, a water bowl, and substrate doesn't come close to providing enough variety in an enclosed environment for the snakes to avoid each other if they chose to do so.