See Full Constitution
Article IV

Section 5. Qualifications of Governor, Lieutenant Governor and Attorney General

No person shall be eligible to the office of Governor, Lieutenant Governor or Attorney General except a citizen of the United States, who shall have attained the age of 30 years, and have been seven years next preceding his election an inhabitant of this Commonwealth, unless he shall have been absent on the public business of the United States or of this Commonwealth. No person shall be eligible to the office of Attorney General except a member of the bar of the Supreme Court of Pennsylvania.