Have coffee and rolls with the locals. Have a picnic once a day. A lot of solo travelers are uncomfortable dining alone. My favorite trick is to make a reservation for two and arrive and say my party will be joining me in a minute. I have covered 11 cities in seven countries, and it has never failed.
Some women traveling alone feel somewhat restricted because of their status.
But I look purposeful. That's how you don't get hassled. I wear black. You can always accessorize. But leave the expensive jewelry at home.