Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Python Tutorial
  • Interview Questions
  • Python Quiz
  • Python Glossary
  • Python Projects
  • Practice Python
  • Data Science With Python
  • Python Web Dev
  • DSA with Python
  • Python OOPs
Open In App
Next Article:
How to Check Selenium Python Version
Next article icon

How to check NumPy version installed?

Last Updated : 24 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 python
  • Using pip show command
  • Using pip list command
  • Using importlib.metadata package

Using <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.2

Using pip show to check version of Numpy

You 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 numpy

Output

numpy_pip_show

Using pip list command

You can run the "pip list" command in your terminal which mentions all the installed packages along with their versions written aside them.

Syntax: pip list

Output

numpy_pip_list

Using importlib.metadata

You 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 metadata
print(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

Next Article
How to Check Selenium Python Version
author
mycodenotein
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: Usi
    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
  • How to Install Specific NPM Version ?
    Node Package Manager (npm) is the default package manager for Node.js and is crucial for managing JavaScript libraries and frameworks. Sometimes, you may need to install a specific version of npm to ensure compatibility with certain projects, scripts, or tools. This article explains how to install a
    2 min read
  • How to Check PySpark Version
    Knowing the version of PySpark you're working with is crucial for compatibility and troubleshooting purposes. In this article, we will walk through the steps to check the PySpark version in the environment. What is PySpark?PySpark is the Python API for Apache Spark, a powerful distributed computing
    3 min read
  • How to Install Numpy on Windows?
    Python NumPy is a general-purpose array processing package that provides tools for handling n-dimensional arrays. It provides various computing tools such as comprehensive mathematical functions, and linear algebra routines. NumPy provides both the flexibility of Python and the speed of well-optimiz
    3 min read
  • How to Find the Version of Installed NPM Package?
    Knowing the version of NPM installed on your system is important especially when working with specific versions of Node JS or when troubleshooting issues. This article provides instructions to check the version of NPM installed on your system. Prerequisites:Node JS Command Line InterfaceSteps To Fin
    1 min read
  • How to install OpenCV latest Version?
    OpenCV, an open-source computer vision and machine learning software library, is widely used for various image and video processing tasks. Keeping it up-to-date ensures access to the latest features and enhancements. In this article, we will see how we can upgrade the latest Opencv Version in Python
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences