GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — Python PIP - GeeksforGeeks Python PIPLast Updated : 5 Jun, 2026 Python PIP is the package manager used to install, update and manage Python packages and libraries. It allows users to easily download packages from the Python Package Index (PyPI) directly through the command line. PIP is commonly used to add external libraries that are not included with Python by default. The basic syntax of a PIP command is:
Check PIP VersionUse the following command in the terminal or command prompt to check whether PIP is installed:
![]() This command displays the installed version of PIP.
Installing PackagesPIP provides the install command to download and install Python packages from PyPI. For example, the following command installs the NumPy package. Below is the syntax:
For Example:
Output When Package is Not Installed![]() Output When Package is Already Installed![]() Install Specific Package VersionYou can install a specific version of a package using the == operator with the package name. Below is the syntax:
Example:
![]() This command installs version 1.26.4 of the NumPy package. Viewing Package InformationThe pip show command is used to display details about an installed package such as version, location and dependencies. Below is the syntax:
Example:
![]() Listing Installed PackagesThe pip list command is used to display all packages installed in the current Python environment. Below is the syntax:
Example: ![]() Uninstalling PackagesThe pip uninstall command is used to remove an installed package from the system. Below is the syntax:
Example:
![]()
Using Requirements FileA requirements.txt file is used to install multiple packages at once. Below is the requirements.txt: ![]() Syntax:
Example: ![]() Listing Installed PackagesThe pip freeze command displays installed packages along with their versions. Below is the syntax:
Example: ![]() Listing Outdated PackagesThe pip list --outdated command shows packages that have newer versions available. Below is the syntax:
Example: ![]() Upgrading PackagesThe pip install --upgrade command updates a package to the latest version. Below is the syntax:
Example:
![]() We can also upgrade any package to a specific version using the below command.
![]() Downgrading PackagesYou can install an older version of a package by specifying the required version. Below is the syntax:
Example:
![]() Related Articles:Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |