I was running into this and in the end, pip install --upgrade pip resolved it.
pip install --upgrade pip