Getting error while using gitdb.utils.compat in Python 3.9

I am getting this error when i tried to include “from gitdb.utils.compat import rmtree” in the latest version.
"
from gitdb.utils.compat import rmtree
ModuleNotFoundError: No module named ‘gitdb’ "

Please provide me any solution for this