What are the Residency and Venue Requirements for Divorce in Pennsylvania?

At least one of the parties must be a Pennsylvania resident for at least 6 months immediately prior to filing a divorce complaint in Pennsylvania. Venue is proper in a county where either party resides, or where the parties can agree in writing.