A section of a Portsmouth road will be closed for up to two weeks while electrical work is completed.