Question: how to train your cat to not scratch you?
Answer: Don't show aggression yourself. When trying to stop your cat from biting or scratching, remember that showing aggression yourself could worsen the problem. ... 
Try to understand their behaviour. ... 
Use toys to distract them. ... 
Consider neutering your cat.