9951 explained code solutions for 126 technologies


python-scipyHow do I check the version of Python Scipy I am using?


The easiest way to check the version of Python Scipy you are using is to use the scipy.__version__ attribute.

Example code

import scipy
print(scipy.__version__)

Example output:

1.4.1

The above code imports the scipy module and prints out the version of Python Scipy you are using.

The code can be broken down into the following parts:

  1. import scipy: This line imports the scipy module.
  2. print(scipy.__version__): This line prints out the version of Python Scipy you are using.

Helpful links

Edit this code on GitHub