I'm 3 years out of school and at my third job, working as a software engineer. I left the first two because of rampant sexual harassment from my coworkers and managers. I'm running into the same thing at my current job, so I don't think finding a new job is the answer. I regularly get emails from male coworkers I've never met and don't work with, asking me out for lunch, or male coworkers stopping by my desk to stare at me without saying anything. There are coworkers who will follow me around and not leave me alone in the cafeteria, insisting on sitting next to me and trying to force a conversation about my personal life, like asking about where I live or if I have a boyfriend. I have male coworkers who will comment on what I'm wearing every day. When I've reported this to HR, they always say something like "well they're probably just trying to be friendly."
The reason I'm asking here is that I only ever experience sexual harassment at work - I take public transit to/from work and regularly go to music festivals/bars/gyms, and while harassment can happen, it's incredibly rare and I can shut it down quickly, while at every job I've had it's started day 1 and continued my entire career.
I'm not sure what to do here. I'm considering leaving software engineering if this continues. Does anyone have any advice on how to address this problem?