You don’t think other professions have cultures?
Good luck with facial piercings and purple hair in Corporate Law, but in software no one would bat an eyelid. The culture you are complaining about is MORE tolerant than nearly all other professions!
When the woman turned up to a social event and said, "why are the men such nerds" and walked away, that wasn't the men's fault or problem actually (unless they wanted to date her). That's her problem: she's the one lobbing insults against an entire group despite not knowing the individuals in question. They do not need to do anything to welcome such a person into their "culture" because she wasn't talking about a culture to begin with.
The story given above, assuming the last "men were at fault" statement is related to the first part, is sadly reflective of all the worst stereotypes of young women. The woman in question decided what career to pursue because she didn't want to be seen as hanging out with uncool people during her studies. Guess what - nerds would be happy to hang out with "non nerds" too, if they came to their events and didn't act all judgey and superior. This is not something unique to women, it's rather, that men seem more willing to either embrace it or tolerate it.
Presumably she is now in a field with fewer "nerds", but quite possibly earning less money than if she'd stuck with CS. Too bad for her.
If we expect people to "enter into" nerd culture to join "nerdy" professions, we're basically expecting people to learn a new language and move into a semi-foreign country just to enter a job field.