« Back to Index

Python programmatically check installed module version

View original Gist on GitHub

Python programmatically check installed module version.py

python -c "import jinja2; print jinja2.__version__"

# In situations like:
#
# apt-get -y install python-jinja2
#
# ...which install Python and the package Jinja2