python

Retrieve the version of an installed package using pip

While working on a Django project, I found myself needing to check the current version of a few specific packages that were installed.

Here's how I did it in terminal

$ pip freeze | grep haystack

The snippet above will output installed packages in requirements format using freeze and then filter packages containing the string "haystack" using grep

celery-haystack==0.6.2
django-haystack==2.1.0

more pip posts

more Python posts