I'm going to get down voted for this but the main reason CS doesn't attract women is that it is not a regulated profession. Competition is high and you have to stay on top of your game regardless of your diploma. It's the same reason there are few women who are entrepreneurs.
Women tend to be more attracted to stable jobs with a well defined path to success such as medicine or teaching.