How to check NumPy version installed? Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report In this article, we are going to learn how we can find out which version of NumPy your Python code uses. The version of any project keeps on changing with time as the project gets updated, new features keep being added, and old bugs are removed. Hence, a lot of work keeps on happening on projects especially one like NumPy which is a very popular Python library. Check the version of NumPy You can find out the version of NumPy using the following methods: Using <Module.__version__> in pythonUsing pip show commandUsing pip list commandUsing importlib.metadata packageUsing <Module.__version>To find out the version of NumPy you are using, just import the module (if not already imported) and then print out "numpy.__version__". Syntax: print(np.__version__)Example Python3 import numpy as np print("My numpy version is: ", np.__version__) Output My numpy version is: 1.23.2Using pip show to check version of NumpyYou can also the run the "pip show" command in your terminal to find out the details of the package you are using which also mentions the version inside it. Syntax: pip show <package_name>Example pip show numpyOutput Using pip list commandYou can run the "pip list" command in your terminal which mentions all the installed packages along with their versions written aside them. Syntax: pip listOutput Using importlib.metadataYou can import the "importlib.metadata" package inside your python code and find out information about metadata of various python packages you have installed. Syntax import importlib.metadata as metadataprint(metadata.version(package_name))Example Python3 import importlib.metadata as metadata np_version = metadata.version("numpy") print("My numpy version is: ", np_version) Output My numpy version is: 1.23.2 Comment More infoAdvertise with us Next Article How to check NumPy version installed? M mycodenotein Follow Improve Article Tags : Python Geeks Premier League Geeks Premier League 2023 Practice Tags : python Similar Reads How to Check Selenium Python Version Selenium, a popular automation tool, simplifies web browser automation tasks in Python. However, ensuring you have the correct version installed is crucial for compatibility and accessing the latest features. This article explores various methods to check the Selenium version in Python, empowering u 4 min read How to Check NPM Version? Node Package Manager (npm) is an essential tool for managing JavaScript projects. Whether you're working on a simple script or a large application, knowing your npm version is important for ensuring compatibility and troubleshooting issues. How to Check NPM Version?To check your npm version, you can 3 min read Check Version of Installed Python Modules In Python, it's important to keep track of the packages we're using. Knowing which version is installed can help avoid compatibility issues and make it easier to fix errors. This article discusses a few easy ways to check the version of any package in your Python environment. Let's explore them:Usin 2 min read How to Check OpenCV Version in Python OpenCV (Open Source Computer Vision Library) is a powerful library for computer vision and image processing tasks. Whether you're a beginner or an experienced developer, knowing how to check the version of OpenCV you're using can be essential for compatibility and troubleshooting. In this article, w 3 min read How to Check PyYAML Version Python Programming Language has various libraries and packages for making tasks easier and more efficient. One such library is PyYAML, which is widely used for parsing and writing YAML, a human-readable data serialization standard. In this article, we will see different methods to check the PyYAML v 3 min read Like