Find version of python package installed

< 1 min. read

Below are 3 methods we can try to find the version of an installed python package. We shall use scipy as an example.

Using pip

Method 1 – For pip 1.3 and above: pip show scipy

Method 2 – Alternative (works with older versions of pip): pip freeze | grep scipy

Using version attribute

Method 3 – Launch python/ipython, then execute the commands below:

import scipy

Reference for Method 1 is here. Reference for Method 2 is here.