As carrot fly can only get to a height of about 1 to 2 feet. If you raise a bed to that level, and then plant your carrot seeds in, they cannot get to them and you will have perfect carrots every time. I did this last year and had no problems at all with my carrots.
Source: Learned through trial and error
By redjan1 from Liverpool, UK