Sitemap

Master these pip commands

3 min readJan 4, 2025
Press enter or click to view image in full size

When working with Python, managing dependencies is an essential skill, and that’s where pip shines. It’s the go-to tool for installing, managing, and uninstalling Python libraries and packages. Whether you’re a beginner or an experienced developer, this guide will walk you through everything you need to know about pip.

What is pip?

pip is Python's package manager, allowing you to:

  • Install libraries and frameworks from the Python Package Index (PyPI) and other sources.
  • Upgrade existing packages.
  • Manage dependencies efficiently for projects.

1. Checking pip Installation

To verify if pip is installed, run:

pip --version

Output:

pip 23.2.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

2. Installing a Package

Install a package using the pip install command:

pip install package_name

Example:

pip install requests

3. Installing Specific Versions

--

--

No responses yet