from your house or compound?
Professional ball python breeder from 2007 to 2014.
Snakes need three things - shelter, water, and food. Eliminate those things from around your home/yard, and you'll be very unlikely to see snakes around (unless good habitat borders your property - then you might see the occasional snake passing through on its way to somewhere else).
Shelter for a snake means rodent burrows, brush piles, stone piles, sheds with gaps under the floor, debris, retention walls with gaps, etc - anything that has small, secure spaces for snakes to hide in. Snakes spend most of their time hiding.
Food typically means rodents, sometimes lizards and birds, or frogs. Discouraging rodents from around your property is the best step to take. That means eliminating shelter for rodents, and keeping any food stuffs in rodent-proof containers. In reality, rodents pose much more of a threat to humans than snakes do; the diseases they carry can be deadlier than a bite from a venomous snake. (Many people choose to encourage harmless snakes around their property in order to control rodents, because non-venomous snakes truly pose no health threat to humans, but rodents definitely do).
You will probably hear a lot of folk remedies for keeping snakes away - most of them involve putting something strongly-scented around the property. Mothballs, herbs, whatever. Don't be fooled - these don't work. Snakes may not hang out on top of things like mothballs, but they have no problem passing over them. And some of these deterrents (like mothballs) are more dangerous to your health than snakes are.
If you spot a venomous snake on your property, in most places there are local people you can call who will come and remove the animal safely, to release it back into the wild away from people. Don't try to kill or move a venomous snake by yourself. The majority of people bitten by snakes were trying to mess with them. Snakes have no desire to come after people or bite them - they do so only to defend themselves.