I am giving it for Windows
If you are using python-3
- Upgrade pip to the latest version using
py -m pip install --upgrade pip - Install package using
py -m pip install <package-name>
If you are using python-2
- Upgrade pip to the latest version using
py -2 -m pip install --upgrade pip - Install package using
py -2 -m pip install <package-name>
It worked for me