I’m a beekeeper who’s never been stung by bees (only wasps). We’re taught strategies to avoid attracting their attention. Some of them may help reduce the amount you’re bothered:
Wearing neutral/light colors is less likely to attract attention. If you are wearing bright/neon colors, they may mistake you for a very large flower and come over to investigate.
Using cologne/perfume/scented products or not showering frequently gives you too much smell, and they’ll come over to investigate. Bees especially love floral-note perfumes (huge surprise). Not wearing scents and showering frequently are good ways to avoid their radar.
Bees (not wasps, there is nothing you can really do about wasps because they’re predatory) will always warn you before they sting, unless you are crushing them with your body. They warn by headbutting. If a bee is bonking into you, it is not confused, it is giving you a warning to run away. If you do not heed the warning, it will then attempt to defend its family.
Bees only sting when they are threatened–either their hive, or their person. Therefore flailing around screaming “GET AWAY GET AWAY” is a guaranteed way to get stung, as an animal 8 bajillion times your size mimicking a Ninja blender is, indeed, threatening. If a bee is investigating you or lands on you, the best thing to do is to stand still or continue going about your business in a non-spastic manner until it leaves.
Bees are curious. Carpenter bees and bumble bees are especially notorious for just wanting to check things out. Unfortunately, their favored method of trying to figure out what kind of creature you are is hovering at face-level approximately 5 inches away from your nose and zipping a few inches from side to side until they are satisfied. My dog bites them in half. If you are not as fast as my dog, you may want to follow the instructions in Step 4.
Flowers are usually easier to come by than water. Therefore, in the summer heat, bees may frequent pools, picnic beverages, or come after your sweat. Sure it’s gross, but it’s better than dying of dehydration. You can prevent this by leaving a hose dripping, watering a bed of flowers, or upending a jar of water with holes punched in the lid in some out-of-the-way location and refilling it often. Then they will gather their water from those sources rather than coming near people as an act of desperation.
The sting of a bee acts as a pheromonal “target” for other bees of the same hive, to help them coordinate their attacks. If you are stung by one bee, while leaving the area make sure to scrape out the stinger. This will help remove the “target” which will attract further stings.
If you are being stung by multiple bees, do not jump into a pond or other body of water like you see in the movies. The bees will wait. They will usually wait longer than you can hold your breath. The best thing to do is run. Bees will not pursue after about 1/4 mile, and will return to their hive. Putting a relatively short distance between you and them is the quickest and most effective way to escape.
Lots of bees nest in the ground, in holes that are difficult to detect even if you know how to identify them. If a bee is stinging you for “no apparent reason”, odds are that you have just collapsed its home and are continuing to dance gleefully atop it. Please move a few yards over, and it will return to freeing its entombed family (priority 1) when it decides the immediate source of damage is gone from the area (priority 0).
If it’s actually wasps that have been getting you, not bees (a bee will die after it stings and leave the stinger embedded in your flesh, a wasp will fly away unharmed, come back, sting you again, and laugh evilly), then please do not claim you’ve been stung by bees. People who have not properly identified the yellow and black flying things stinging them make other people nervous about responsible beekeepers in their area, which is super lame.