🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to Python Notes
Topic #96

Python PIP


What is PIP?

PIP is a package manager for Python packages, or modules if you like.

Note: If you have Python version 3.4 or later, PIP is included by default.


What is a Package?

A package contains all the files you need for a module.

Modules are Python code libraries you can include in your project.


Check if PIP is Installed

Navigate your command line to the location of Python's script directory, and type the following:

Example

C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip --version

Install PIP

If you do not have PIP installed, you can download and install it from this page: https://pypi.org/project/pip/


Download a Package

Downloading a package is very easy.

Open the command line interface and tell PIP to download the package you want.

Navigate your command line to the location of Python's script directory, and type the following:

Example

C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip
  install camelcase

Now you have downloaded and installed your first package!


Using a Package

Once the package is installed, it is ready to use.

Import the "camelcase" package into your project.

Example

  import camelcase

c = camelcase.CamelCase()

txt = "hello world"

print(c.hump(txt))

Find Packages

Find more packages at https://pypi.org/.


Remove a Package

Use the uninstall command to remove a package:

Example

C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip
  uninstall camelcase

The PIP Package Manager will ask you to confirm that you want to remove the camelcase package:

Uninstalling camelcase-02.1:
  Would remove:
    c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camelcase-0.2-py3.6.egg-info

c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camelcase\*
Proceed (y/n)?

Press y and the package will be removed.


List Packages

Use the list command to list all the packages installed on your system:

Example

C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list

Want to go beyond the notes?

Join CodingNow 2.0's Python course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Python PIP – FAQs

Quick answers about learning Python PIP in Python.

This free note from CodingNow 2.0 explains Python PIP in Python — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Python topic on CodingNow 2.0, including Python PIP, is 100% free with no signup required.
With focused practice, most students grasp Python PIP in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now