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
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
Post a Comment
Please do not enter any spam link in the comment box