Second, maybe you got into it as a solitary activity as a child (I did too, long ago), but unless you work at a very, very unusual job, it's not at all a solitary activity these days at any normal company.
My workplace even had a sexual assault in the workplace training course where they coached us to stop co-workers from speaking if they started to disclose being victimized at work, I assume to avoid being legally responsible to respond appropriately.
That happens about as much in any field as long as you mix genders, so that is no reason to not want a software job.
Men also experience more social pressure to be successful at work, or else are seen as not as worthy of respect as people or as romantic partners regardless of their personal goals and values.