What is PIP?

What is PIP in Python?

pip is a package manager for Python and is included by default with the Python installer. It helps to install and uninstall Python packages (such as Django!). For the rest of the installation, we’ll use pip to install Python packages from the command line. PIP is a package manager for Python packages, or modules.
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 Or Not

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

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

Download a Package

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:

Using a Package

Once the package is installed, it is ready to use. Import the "camelcase" package into your project.
import camelcase
c = camelcase.CamelCase()
txt = "hello world"
print(c.hump(txt))

Find Packages

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

List Packages

Use the list command to list all the packages installed on your system:
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list





Previous Next


Trending Tutorials




Review & Rating

0.0 / 5

0 Review

5
(0)

4
(0)

3
(0)

2
(0)

1
(0)

Write Review Here