Got it to work after trying to hack into a solution that I read here (loans to Andrew Jong).
Go to the init .py file , causing an error. There will be a line -
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
Delete everything before urllib3, i.e. change it to -
from urllib3.exceptions import DependencyWarning
Now pip starts working again.
source
share