Disclosed are a 2-aminopyridine derivative having protein kinase inhibition activity, a preparation method and a pharmaceutical composition thereof Also disclosed are uses of the compounds and the pharmaceutical compositions thereof in the preparation of drugs for treating and/or preventing protein kinase-related diseases.