Make sure you are using the correct versions of Python and pip. Check with these commands:
python --version pip --version
You could also check and update pip to the latest version:
python -m pip install --upgrade pip