What is Pip | How to Install Python packages using Pip

What is Pip | How to Install Python packages using Pip

What is PIP ?
      -Article By:
     Shubham Sagar



pip is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes.
We use it to install different libraries and frameworks for Python.

How to Install PIP?

While installing Python in your system you must have got an option of installing pip along with Python Interpreter.



If you didnt install it at the time of Python installation then you can do it again by using the following command in Command Prompt.

pip install pip

After Installation You can use it to install other libraries as well which are listed in Python Packaging Index at PyPi.

_______________________________________

Find Packages

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


How to Install Packages

To install packages we use the following command in CMD to install it:


pip install package_name


Example:



pip install scipy

This command will install the SciPy library in Python.


After Sometimes the package will be installed with this caption:

Successfully installed Scipy- 1.5.2



This is how we install any Package using pip in Python.

List Packages

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

Example

List installed packages:

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

Result:

Package         Version
-----------------------
camelcase       0.2
mysql-connector 2.1.6
pip             18.1
pymongo         3.6.1
setuptools      39.0.1

_________________________________


THANK YOU.....


Article By:

Shubham Sagar
www.youtube.com/c/coveringtheworld
https://www.instagram.com/shubham.__.sagar

For Business Queries: codestar712@gmail.com

Code Star, India



1 comment:

Powered by Blogger.