To solve this error , run the following command in anaconda prompt :

easy_install pip

then

Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl#sha256=717cdffb2833be8409433a93746744b59505f42146e8d37de6c62b430e25d6d7
Best match: pip 10.0.1
Processing pip-10.0.1-py2.py3-none-any.whl
Installing pip-10.0.1-py2.py3-none-any.whl to f:\software\anaconda3\lib\site-packages
writing requirements to f:\software\anaconda3\lib\site-packages\pip-10.0.1-py3.6.egg\EGG-INFO\requires.txt
Adding pip 10.0.1 to easy-install.pth file
Installing pip-script.py script to f:\software\anaconda3\Scripts
Installing pip.exe script to f:\software\anaconda3\Scripts
Installing pip3-script.py script to f:\software\anaconda3\Scripts
Installing pip3.exe script to f:\software\anaconda3\Scripts
Installing pip3.6-script.py script to f:\software\anaconda3\Scripts
Installing pip3.6.exe script to f:\software\anaconda3\Scripts
Installed f:\software\anaconda3\lib\site-packages\pip-10.0.1-py3.6.egg
Processing dependencies for pip
Finished processing dependencies for pip