Anemia can have a few different causes, the most common(?) being:
-Low iron;
-Poor absorption of iron;
-Low vitamin B12.
Low testosterone doesn't count, since it's only a "risk factor". Women have low testosterone, and that doesn't mean half the global population is anemic.
I'm a vegetarian, so the tips will go according to that, but of course, despite their unhealthy sides, red meat and animal liver are also good sources of iron and are generally of vitamin B12 too.
-Eat foods that are rich in iron, such as lentils, cocoa, basil, ginger and whole grains.
-Make sure you get enough vitamin C: it's required to properly metabolise iron from vegetable sources.
-Make sure you get your daily vitamin B12. This is sadly the only vitamin that's a pain to get without meat: you have to get supplemented foods (soy milk, some breakfast cereals, some other drinks) or a supplement from the drug store. Be careful though: people generally only need about 1.4 µg per day, and supplements can lead you to consome heaps more, and that's bad. And don't feel bad about supplements and supplemented foods: most of meat's B12 comes from the very same supplements that are given to the animals you eat.
Don't go too extreme, especially if you haven't seen a doctor about it. Anemia has other causes, too, and it could be something else.
Try a few things like these, and if it doesn't get better in a few days, you might want to consult a health professional. You could just ask your pharmacist, explaining your situation so he doesn't just say "see a doctor", too, who will give you free advice.