How to install pandas library

1. Install Pandas on Windows Step-by-Step

Background

You can install pandas using pip command  or conda if you are using Anaconda Distribution

Pip (Python Package Manager) command comes with Python to install third party packages from PyPi.

Using PiP you can install/uninstall/upgrade/downgrade any python library that is part of Python Package Index.

Conda is the package manager that comes with Anaconda distribution.

NB: To install pandas, you need to have Python already installed in your system.

Step 1: Run Python shell from command prompt

  • Press windows icon + R
  • Type "cmd" or "command prompt"
  • Press Enter to open cmd
  • In the cmd, type python  to check if it exists in the system already
Step 2: Install Pandas using pip command on windows
In the cmd terminal, enter the following command:
>>>pip install pandas
or
>>>pip3 install pandas

NB: pip is associated with Python 2.x while pip3 is associated with Python 3.

To check what version of pandas installed using cmd
>>>pip list
or
>>>pip3 list

Installing a Specific version of pandas
Syntax: pip install pandas = = <desired_version>

Example:
>>>pip install pandas = = 1.2.3

In case you wanted to upgrade pandas to the latest version.
>>>pip3 install -- upgrade pandas

Alternatively you can also try:
>>>python -m pip install --upgrade pandas









Post a Comment

Previous Post Next Post

Contact Form