Skip to main content

Using pip in python and modules

What are packages?

A package contains all the files you need for a module.
Modules are Python code libraries you can include in your project.

What is pip?

Pip is the package manager for Python .There are many packages that are built-in in python and need not to be installed. Some of the examples of packages that are in-built in python are 
tkinter, random, etc.

But many modules are there which need to be downloaded and installed from outside sources. Some of those modules are
matplotlib, django, pandas,kiwi,pygame, etc. To use these packages we need to install them .

How to use pip?

   1.If  you are using IDLE

      Step 1)  Open the location where your python is installed.
                   If you haven't changed the default location of installing 
                   then this will be the location of  your IDLE.

                  C:\Users\Your Name\AppData\Local\Programs\Python\Python37\Scripts     

      Step 2)  Open Command Prompt and paste the location.Now try running the command(Please ensure that you have an active internet connection)

                                        pip install  pandas 
                 Press Enter

     Step 3) Successfully installed message will appear.Now you are all set.


       

    2.If  you are using PyCharm

        Using Pycharm , it is very easy to use pip and install packages.
        Just you have to open pycharm, go to the terminal and write the command
         Try writing the command

                                  pip install  pandas 
                 
                     

Now you are all ready! Jet set go and code




Comments

Popular posts from this blog

How to install python IDE ? IDLE and Pycharm

How to install Python IDE on Windows 10(Pycharm and IDLE)? Pycharm is the best Python IDE available.It comes with many in -built features. We will discuss its shortcuts in our next blogs.Pycharm is a cross-platform editor developed by jetbrains.   Installing Python Step 1) Visit the official website of python or click the below link              https://www.python.org/downloads/  .  Step 2) Click on Download Python               Step 3) After the download is complete ,open the exe file and click               on Install now  Step 4) After the successful installation it will show you a message         Setup was successful Step 5) Now go to your windows search bar and type "IDLE"              Press Enter and you will see that idle is opened Installing Pycharm St...

String Slicing in python

String Slicing Python  Slicing refers to extracting some words from a string. As in many other languages there are many different concepts for extracting a letters or words from a string ,in python we are having the concept of slicing. We can also the same things using looping, we will learn about it in our next tutorials. Indexing in Strings Before starting slicing, we need to understand the indexing in python. We have the concept of positive indexing  and  negative indexing.  Positive indexing starts from 0 to (length of string).It goes from forward to backward. Negative indexing starts from -1 to -(length of string + 1). It is illustrated in below example Below are some examples of how to use string slicing to extract characters from string. Accessing the characters in a string using positive index eg. string= "We are studying string slicing" s=string[ 0 ] # A single character will be printed present at index 0 w=string[ 4 ] # A...