To see the installed version of a specific package use:
pip show pelican
this command will show the installed version and other package information.
To list the version of all installed packages use:
pip freeze
This command will produce an output like this:
blinker==1.3
docutils==0.12
feedgenerator==1.7
Jinja2==2.7.3
MarkupSafe==0.23
pelican==3.5.0
Pygments==2.0.2
python-dateutil==2.4.2
pytz==2015.4
six==1.9.0
Unidecode==0.4.18
It is common to use Pip Freeze to generate a Requirements.txt file, since the format generated by the output is compatible with Pip install -r
It is also worth mentioning the command
pip list
Which produces an output as the example below:
blinker (1.3)
docutils (0.12)
feedgenerator (1.7)
Jinja2 (2.7.3)
MarkupSafe (0.23)
pelican (3.5.0)
pip (7.0.3)
Pygments (2.0.2)
python-dateutil (2.4.2)
pytz (2015.4)
setuptools (17.1.1)
six (1.9.0)
Unidecode (0.4.18)
Which is not so different from Pip Freeze, its advantage is to use along with the -o option:
pip list -o
Which will list only the pactoes that have updates available along with the installed version and the available version, in the format below:
pelican (Current: 3.4.0 Latest: 3.5.0 [wheel])