Depending on how bad it is, if it's dry a light rub with fine sandpaper may shift it.
Failing that if it's a small area, cut the patch out with a knife and use it as a template to cut another piece to swap from somewhere hidden.
Other than that, you'll probably need to go to the carpet shop.