How to Install a Package in Python

In this article, we will learn how to install a package.
If you’re using Windows, you’ll be able to install a Python package by opening the Windows Command Prompt, and then type this command:
pip install package name
Let’s go through a detailed way to install a package on python:
Open command prompt in system. And type cd\. Now you are at the root directory.
The next step is to find the path of Python Scripts folder. The Scripts folder can be found within the Python application folder, where you originally installed Python.
For example, this is a path of the scripts folder C:\Users\user\AppData\Local\Programs\Python\Python38\Scripts
Now in the Command Prompt, type cd followed by your Python Scripts path:

Now, type the pip install command to install your Python package. The pip install command has the following structure:
pip install package name
For example, we can install the pandas package. Type the following command in the Command Prompt:
pip install pandas
Similar way, you can install any packages of your need to your system.