pip install get version code example
Example 1: how to update pip
#for updating pip type the following command in terminal or cmd or powershell
python -m pip install --upgrade pip
Example 2: update pip
sudo pip3 install --upgrade pip
Example 3: get version package from pip
$ pip show Jinja2
---
Name: Jinja2
Version: 2.7.3
Location: /path/to/virtualenv/lib/python2.7/site-packages
Requires: markupsafe