If your snake will not eat, the first thing you need to do is know how often they should be. A small, young snake should be eating about twice a week, whereas a larger, more mature snake will only need feeding every week or two. So, you will notice that their feeding becomes more infrequent as they get older anyway. If that is not the case, and you know that they should be eating what you are offering, then there could be an issue. There are four main reasons why a snake will not eat. If you know that it is none of these, then you will need to take them to a specialist vet.
Tank surroundings are crucial for your snake. They need to feel like they are not being watched. So, if there are a lot of people nearby, they will probably not eat. Stress is another factor that you have to consider. If you have a new pet snake, they may not feed until they are settled. Or, if you have recently moved their home, that could be the reason. Look for new stressors and try to make changes. Their atmosphere is another requirement. If they are too cold or dry, they will not eat properly. Finally, if they are close to shedding their skin, they will likely not eat, either.