Since it is written: "Let them exalt Him in the assembly of the people, and praise Him in the seat of the elders," therefore our Sages, of blessed memory, said that one must recite the blessing before ten, who are called an "assembly," and two of them should be rabbis and are called "elders" in the language of the verse, and the minimum of "elders" is two. The Rambam in chapter 10 wrote that one recites the blessing while standing, and it seems to me his reason is that since he recites the blessing before ten, and "wherever there are ten the Shekhinah dwells," it is not the way of proper conduct to sit. For this reason, it appears they practiced reciting this blessing after one goes up to the Torah, for then there are certainly some scholars among the ten and he is standing. All of this is not a requirement post facto, for if there are not two rabbis among them—he has fulfilled his obligation (Mordechai). The Tur wrote that even without ten he has fulfilled his obligation, and some say he has not fulfilled it, and it is good to recite the blessing another time before ten without the Name and Sovereignty. It is proper to be careful not to delay this blessing more than three days after he is able to recite it, and if the listeners did not answer "He who has bestowed upon you etc." it also does not invalidate (Magen Avraham subsection 2). A minor should not recite this blessing, and women have practiced not to recite it, and there is no reason for this other than because the custom is to recite it at the time of the Torah reading, therefore they imagine that women are not obligated in this blessing, and therefore it is proper that they should recite it. And perhaps because it is written: "in the assembly of the people," and women are not called an "assembly," and to recite the blessing before men is not the way of proper conduct, and therefore they refrained from this (and see Magen Avraham).
כיון דכתיב: "וירוממוהו בקהל עם ובמושב זקנים יהללוהו", לכן אמרו חז"ל דצריך לברך בפני עשרה דאקרו קהל, ותרי מינייהו רבנן ונקראו זקנים בלשון הכתוב, ומיעוט זקנים שנים. והרמב"ם בפרק י' כתב שמברך בעמידה, ונראה לי טעמו דכיון שמברך בפני עשרה ואכל בי עשרה שכינתא שריא, אינו מדרך ארץ לישב. ומטעם זה נראה דנהגו לברך ברכה זו אחר שעולה לתורה, דאז וודאי יש בין העשרה איזה לומדים והוא מעומד. וכל זה אינו לעיכובא, שאם אין ביניהם תרי רבנן - יצא (מרדכי). והטור כתב דגם בלא עשרה יצא, ויש אומרים שלא יצא, וטוב לברך פעם אחר בפני עשרה בלא שם ומלכות. ונכון ליזהר שלא להתעכב בברכה זו יותר מג' ימים אחר שיכול לברך, ואם השומעים לא ענו מי שגמלך וכו' גם כן אינו מעכב (מג"א סק"ב). וקטן אין לו לברך ברכה זו, ונשים נהגו שלא לברך, ואין בזה שום טעם ורק מפני שהמנהג הוא לברך בעת קריאת התורה לכן מדמים שאין הנשים חייבות בברכה זו, ולכן נכון שיברכו. ואולי מפני דכתיב: "בקהל עם", ונשים לא מקרו קהל, ולברך בפני אנשים אינו מדרך ארץ, ולכן נמנעו מזה (ועיין מג"א).