If you have a good friend he hangs out with, confide in that person that you are trying to avoid him. They’ll be able to help you out by telling you where he is if they’re hanging out with him.
Keep in mind, if you are just trying to avoid him for a short time period, you don’t want to give him signals that you don’t like him. You just want to avoid carrying on a long conversation that will put you in an awkward situation.
Do something that will take your total concentration, like doing a puzzle. You can also find something to do outdoors, like identifying plants or insects.
Of course, if he is talking directly to you, you don’t want to run away or pretend like he’s not there! Just play it cool and be polite.
Stay busy with a task, even if it is silly, such as rearranging some papers, so that you appear unavailable and uninterested in what he’s doing.