To see the installed version of a specific package use:
pip show pelican
This command will show the installed version and other information about the package.
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
Also worth mentioning is the
pip list
That produces an output like 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)
That's not so different from pip freeze, its advantage is to use along with the -o option:
pip list -o
That will list only the paces 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])