To Solve ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions' Error this problem happened to me after I upgraded my homebrew, What really worked for me is this, curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py then python get-pip.py and also it seems only pip version 21.1.1 fixed the problem.