Yoke Keong

Find version of python package installed

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:

1import scipy
2scipy.__version__

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

<< Previous Post

|

Next Post >>

#Python