For persistent problems,
a qualified wildlife-control professional can assess the property, identify likely entry points, and recommend appropriate preventive measures.
The bottom line: There is no household scent proven to keep all snakes away permanently. Rather than relying on chili powder or another strong-smelling ingredient, reduce hiding places, control rodents, seal suitable entry points, and keep a safe distance from any snake you encounter.