Re: Getting installed version

2018-07-21 Thread Peter J. Holzer
On 2018-07-20 08:04:33 +0200, Cecil Westerhof wrote: > 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. Using pip probably is the most reliable way (for packages installed via pip).

Getting installed version

2018-07-19 Thread Cecil Westerhof
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 LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.python.org/mailman/listin