Anthracnose is extremely detrimental to walnut production, because it seriously affects its yield. Therefore, this study aimed to identify anthracnose resistance genes in walnuts, to lay the foundation for cultivating novel anthracnose-resistant walnut varieties. In this study, the fruits of walnut varieties “Qinyou 1” and “Qinyou 2”, exhibiting relatively weak resistance to anthracnose, were used for transcriptome sequencing and identifying differentially expressed genes (DEGs). Thereafter, we used a quantitative real-time polymerase chain reaction to verify the reliability of the transcriptome data using the walnut varieties Qinyou 1, Qinyou 2, Qinyou 3, Liaohe 1, and Diamond 1. We identified 6326 DEGs post-infection in Qinyou 1, of which 3065 were upregulated and 3261 were downregulated. We also found 2055 DEGs (969 upregulated and 1086 downregulated genes) in the two varieties, after 6 days of anthracnose infection. Based on GO and KEGG enrichment analyses of the transcriptome data, we noted that the DEGs were primarily involved in metabolic processes, cell composition, cell structure, catalytic activity, and binding activity. Furthermore, KEGG functional enrichment analysis showed that the amino acid biosynthesis pathway and plant–pathogen interaction may be activated under anthracnose infection. We also noted that the expression levels of anthracnose resistance genes in different walnut varieties were significantly different. Thus, the findings of this study provide important genetic resources and molecular markers for the cultivation of novel anthracnose-resistant walnut varieties.