Adult giant pandas (Ailuropoda melanoleuca) express transitional characteristics in that they consume bamboos, despite their carnivore-like digestive tracts. Their genome contains no cellulolytic enzymes; therefore, understanding the development of the giant panda gut microbiome, especially in early life, is important for decoding the rules underlying gut microbial formation, inheritance and dietary transitions. With deep metagenomic sequencing, we investigated the gut microbiomes of two newborn giant panda brothers and their parents living in Macao, China, from 2016 to 2017. Both giant panda cubs exhibited progressive increases in gut microbial richness during growth, particularly from the 6th month after birth. Enterobacteriaceae dominated the gut microbial compositions in both adult giant pandas and cubs. A total of 583 co-abundance genes (CAGs) and about 79 metagenomic species (MGS) from bacteria or viruses displayed significant changes with age. Seven genera (Shewanella, Oblitimonas, Helicobacter, Haemophilus, Aeromonas, Listeria, and Fusobacterium) showed great importance with respect to gut microbial structural determination in the nursing stage of giant panda cubs. Furthermore, 10 orthologous gene functions and 44 pathways showed significant changes with age. Of the significant pathways, 16 from Escherichia, Klebsiella, Propionibacterium, Lactobacillus, and Lactococcus displayed marked differences between parents and their cubs at birth, while 29 pathways from Escherichia, Campylobacter and Lactobacillus exhibited significant increase in cubs from 6 to 9 months of age. In addition, oxidoreductases, transferases, and hydrolases dominated the significantly changed gut microbial enzymes during the growth of giant panda cubs, while few of them were involved in cellulose degradation. The findings indicated diet-stimulated gut microbiome transitions and the important role of Enterobacteriaceae in the guts of giant panda in early life.