I have the same problem. I use a stick vacuum called a Quick-up. But any vacuum will pull the hair from near the nozzle.

I find there are certain areas where the hair likes to collect; especially corners.