I missed an import
@@ -8,7 +8,7 @@ import site
import sys
import sysconfig
from distutils import sysconfig as distutils_sysconfig
-from distutils.command.install import SCHEME_KEYS
+from distutils.command.install import SCHEME_KEYS # type: ignore
from pip._internal.compat import WINDOWS, expanduser
from pip._internal.utils import appdirs
