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:
Check Version of Installed Python Modules
Next article icon

Find Installed Python Package Version Using Pip

Last Updated : 29 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

When working with Python projects, it's important to know which versions of packages are installed in your environment. This helps ensure compatibility, manage dependencies, and troubleshoot issues effectively. Whether you're collaborating on a team, deploying an application, or simply maintaining your own codebase, being aware of the installed package versions is essential for a smooth development workflow. Let's understand the different method to do this efficiently.

Using pip show

The pip show command is one of the most straightforward ways to check the installed version of a package. It provides detailed information about the package, including the version number, location and dependencies.

  • Open the terminal or command prompt.
  • Type the following command and press Enter:

pip show package_name

Example: To check the version of emoji package, we would use:

pip show emoji

Output

pip-show-emoji-output
pip show to check python package version

Using import and __version__

If we are already in a Python environment, we can find out the version of a package by importing it and checking its __version__ attribute.

import emoji
print(emoji.__version__)

Output

import-emoji-version
Check Python Package Version

Using Python -c Command

With -c flag we can run python code from the terminal.

python -c "import emoji; print('emoji:', emoji.__version__)"

Output

python-c-emoji-version
Python -c Command

Using pip list

Another way to check the version of an installed package is by using the pip list command. This command lists all installed packages along with their versions.

pip list

Output

Scroll through the list to find the package name and its version number.

pip-list-output
pip list to check python package version

Using pip freeze

The pip freeze command is similar to pip list, but it formats the output in a way that's often used for creating requirements.txt files. It lists all installed packages with their exact versions.

pip freeze

Output

Find the package in the output to see its installed version.

pip-freeze-output
pip freeze to check python package version

To create a requirements.txt file with all installed packages and their versions, use the pip freeze command. The > symbol redirects the output to a file instead of showing it on the screen:

pip freeze > requriements.txt


Next Article
Check Version of Installed Python Modules

F

frostmkrcr
Improve
Article Tags :
  • Python
  • Python-pip
Practice Tags :
  • python

Similar Reads

  • 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 pyscopg2 package in Python?
    psycopg2 is the most popular PostgreSQL database adapter for the Python programming language. It is a DB API 2.0 compliant PostgreSQL driver is actively developed. It is designed for heavily multi-threaded applications that create and destroy lots of cursors and create a large number of "INSERTs" or
    1 min read
  • Get Application Version using Python
    Software versioning maybe thanks to reasoning the distinctive states of pc software package because it is developed and discharged. The version symbol is typically a word, a number, or both. For instance, version 1.0 is often accustomed to denote the initial unharness of a program. In this article,
    2 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 List Installed Python Packages
    Working on Python projects may require you to list the installed Python packages in order to manage dependencies, check for updates, or share project requirements with others. In this post, we'll look at numerous techniques for listing the Python packages that are installed on your system. List Inst
    5 min read
  • Install Python package using Jupyter Notebook
    Jupyter Notebook is an open-source web application that is used to create and share documents that contain data in different formats which includes live code, equations, visualizations, and text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualiz
    3 min read
  • How to find out which package version is loaded in R
    The packages in R are defined as the R files which are created and compiled to use. The packages in R are stored in the directory named library so when we install any package we need to load it into our current environment using the library() function. After loading them, we can easily find out whic
    1 min read
  • How to Install bottle package in python?
    The bottle is a lightweight, WSGI-based micro web framework package for the Python language. One of the best features of this package is that it is distributed as a single file and it supports Python 2.7 and Python 3. This package is available for Windows, Linux, and macOS. Features of Bottle No dep
    1 min read
  • How to Check If Python Package Is Installed
    In this article, we are going to see how to check if Python package is installed or not. Check If Python Package is InstalledThere are various methods to check if Python is installed or not, here we are discussing some generally used methods for Check If Python Package Is Installed or not which are
    5 min read
  • Linux - Installing PIP to Manage Python Packages
    Python is the most popular language for a decade, and we all know that python had a huge support of libraries that are used in different sectors of Software Engineering. Meanwhile, PIP also getting its fame along with python in Linux and developers community.PIP is a package manager for python in ha
    2 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