Tumor-associated macrophages M2 (TAM2), which are highly prevalent infiltrating immune cells in the stroma of pancreatic cancer (PC), have been found to induce an immunosuppressive tumor microenvironment, thus enhancing tumor initiation and progression. However, the immune therapy response and prognostic significance of regulatory genes associated with TAM2 in PC are currently unknown. Based on TCGA transcriptomic data and single-cell sequencing data from the GEO database, we identified TAM2-driven genes using the WGCNA algorithm. Molecular subtypes based on TAM2-driven genes were clustered using the ConsensusClusterPlus algorithm. The study constructed a prognostic model based on TAM2-driven genes through Lasso-COX regression analysis. A total of 178 samples obtained by accessing TCGA were accurately categorized into two molecular subtypes, including the high-TAM2 infiltration (HMI) cluster and the low-TAM2 infiltration (LMI) cluster. The HMI cluster exhibits a poor prognosis, a malignant tumor phenotype, immune-suppressive immune cell infiltration, resistance to immunotherapy, and a high number of genetic mutations, while the LMI cluster is the opposite. The prognostic model composed of six hub genes from TAM2-driven genes exhibits a high degree of accuracy in predicting the prognosis of patients with PC and serves as an independent risk factor. The induction of TAM2 was employed as a means of verifying these six gene expressions, revealing the significant up-regulation of BCAT1, BST2, and MERTK in TAM2 cells. In summary, the immunophenotype and prognostic model based on TAM2-driven genes offers a foundation for the clinical management of PC. The core TAM2-driven genes, including BCAT1, BST2, and MERTK, are involved in regulating tumor progression and TAM2 polarization, which are potential targets for PC therapy.