Scipy is an open-source python library that allows you to perform scientific computing and technical computing. It contains modules for optimization, linear algebra, integration, interpolation, special functions, FFT, signal, and image processing. If you have already installed scipy in your system and want to check the version of it then this post is for you. In this entire post, you will know how to check the scipy version on different platforms.
How to check the Scipy version
After reading this section you will know the various ways to check the version of the scipy.
Checking the Scipy Version on Windows
If your system has Windows installed then you can check the version of the scipy using the below command. Open your command prompt and type python on it. It will open the python interpreter. There import the scipy and check the version using the scipy.__version__ . If you are getting no ModuleNotFoundError: No module named ‘scipy’ then in this case install scipy before checking its version.
import scipy scipy.__version__

Scipy Version on MacOs
You can display the version of scipy in MacOs in the same way as the above. Open your terminal and type the below command to get the version.
import scipy
scipy.__version__
Scipy Version using pip
The pip module is already installed by default when you install python in your system. You can know the version of the scipy using the pip command.
pip show scipy

Display scipy version in Jupyter Notebook
In the Jupyter notebook, you can use the pip command to check the version. Run the below command.
!pip show scipy
Google Colab
In Google Colaboratory, you can check the version by executing the following code in a cell.
!pip show scipy
or
!pip freeze | grep scipy


Anaconda
In Anaconda, you can check the Scipy by executing the following command in the Anaconda Prompt.
conda list keras
Pycharm
If you are using scipy on Pycharm, you can know the version by Navigating to the file. Go to File > Settings > Project Interpreter. It will open the Project Interpreter window. There you will see the list of all the packages that are installed in your working project. You will know the version of Scipy next to the package name.
Conclusion
Scipy is one of the best python libraries for doing statistical calculations easily. You can use it while building machine learning APIs . If you have already installed the Scipy module then these are the ways to check its version across different platforms.
Leave a Reply