Yes, you can say, "I lived in London for a period." A period is, amongst other things, a unit of time. In New Zealand a school day is divided into several periods.
You can also say:
"I lived in London for a period of time." "I lived in London for some time." "I lived in London for a time." "I lived in London for a while." "I lived in London awhile."