python-scipyHow do I check the version of Python SciPy I'm using?
To check the version of Python SciPy you are using, you can use the scipy.__version__
attribute. This attribute will return the version of SciPy you are using.
Example code
import scipy
print(scipy.__version__)
Example output:
1.5.2
The code can be broken down into two parts:
import scipy
- this imports the SciPy library into the program.print(scipy.__version__)
- this prints the version of SciPy that is being used.
Helpful links
More of Python Scipy
- How do I use the trapz function in Python SciPy?
- How do I create a 2D array of zeros using Python and NumPy?
- How do I use Python XlsxWriter to write a NumPy array to an Excel file?
- How do I convert a Python numpy array to a list?
- How do I use the scipy ttest_ind function in Python?
- How do I calculate the mode using Python Scipy Stats?
- How can I use Python Scipy to generate random numbers?
- How do I convert a Python numpy.ndarray to a list?
- How can I use Python and SciPy to generate a uniform distribution?
- How can I use the Radial Basis Function (RBF) in Python with SciPy?
See more codes...