install the fan on a side of the tent that doesn't see light.
If nessesary, build a small box out of card board around the outside of the tent where the fan with holes in the bottom to block out light.