Get the version of a package installed by pip
Here is a good way to do that less error prone than using basic grep.
pip list --no-index --format=json | \
jq -r '.[] | select(.name=="Jinja2").version'
# 2.10.1
Here is a good way to do that less error prone than using basic grep.
pip list --no-index --format=json | \
jq -r '.[] | select(.name=="Jinja2").version'
# 2.10.1