How to install pandas using the python package manager?

A package is a bundle of modules, to be installed into a Python environment. And typically, this would include things like third-party libraries and frameworks.

Package Managers are tools that help you manage the dependencies for your project implementation. For python-pip is the package manager provided by default with the rest of the Python standard library and things like the Python interpreter, pip’s main interface is a command-line tool.

pip is written in Python which is used to install and manage software packages. as we know that pip is available by default with python, so we no need to install it again, because it is already installed. And it has a feature to manage full lists of packages and corresponding version numbers

pip installs packages like TensorFlow and NumPy, pandas and sklearn, and many more, along with their dependencies.

To install the pandas package by using pip we have to open the command prompt in our system (assuming, our machine is a windows operating system).


pip install pandas


This command will install the pandas package as well as it will also install all the dependencies of our pandas package.

If you want to install any particular version of the pandas package, we can give the below command −


pip install pandas==1.2.2


In some situations, we need to upgrade the python package manager to get the latest version of packages then we can use the below command in our command prompt.


python -m pip install --upgrade pip

Every time, when you try to install any package, initially pip will check for the package dependencies if they are already installed on the system or not. if not, it will install them. Once all dependencies have been satisfied, it proceeds to install the requested package(s).

Updated on: 17-Nov-2021


Kickstart Your Career

Get certified by completing the course

Get Started