In Egypt, a woman travelling alone is generally safe, but she will be noticed, less in large cities than in the country. However, if problems do occur, seek help from the police or any shop nearby.
Although you probably will never be accosted, take simple precautions as you would anywhere: don't walk in deserted areas alone. Although most invitations are innocent, don't accept them from strangers. You should exercise common sense at all times.