Python PIP

What is PIP?
PIP is a package manager for Python packages, or modules if you like.
What is a Package?
All the files that you need for a module is conatined in a package.

The python code libraries that you can include in your project are called as modules.

Check if PIP is Installed
Navigate to your command line to the location script directory of Python and type the following code:
To check that which PIP version are you using then type the following code:

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


Install PIP
If you have not installed PIP in your computer system then you can can download it from the following link:
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 to your command line to the location script directory of Python and type the following code:

To download a package named "camelcase", type the following code:

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 a package is installed, then it is ready to use.

Import the "camelcase" package into your project.
Import and use "camelcase":

import camelcase

c = camelcase.CamelCase()

txt = "hello world"

print(c.hump(txt))


Find Packages
You can find more packages at https://pypi.org/.

Remove a Package
Use the uninstall command to remove a package:
Uninstall the package named "camelcase":

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


The PIP Package Manager will confirm from you that if 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\camecase-0.2-py3.6.egg-info

     c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camecase\*

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:
List installed packages:

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