
There are 4 ways you should try to fix this error when you try to install a module use pip
Reinstall Python
- Uninstall Python 3
- Download Python 3 from official website and installing it
- Running
python -m pip install --upgrade pip
in cmd
Reinstall PIP
python -m pip install --upgrade --force-reinstall pip
Try freeze option
python -m pip freeze
Python27 installed alongside Python3
Goto Environmental Variables and delete Python27 in the path may fix the issue. Pip is confused by multiple paths