Getting installed version

Cecil Westerhof Cecil at
Fri Jul 20 02:04:33 EDT 2018

I can get the installed version of a package with:
    pip2 show cryptography | awk '/^Version: / { print $2 }'

But I was wondering if there is a better way.

Cecil Westerhof
Senior Software Engineer

More information about the Python-list mailing list