How to know the version of pip itself
You can do this:
pip -V
or:
pip --version
Just for completeness:
pip -V
pip --version
pip list
and inside the list you'll find also pip with its version.
For windows:
import pip
help(pip)
shows the version at the end of the help file.
For windows just type:
python -m pip --version