> ## Content Index
> Fetch the complete content index at: https://datascientyst.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to update Pandas in PIP, Anaconda, Poetry
- URL: https://datascientyst.com/update-pandas-pip-anaconda-poetry/
- Published: 2022-01-30T10:18:42.000Z
- Updated: 2022-01-30T10:18:42.000Z
- Author: John D K
- Tags: Installations

To **update Pandas to a specific or to a latest version** you need to check next steps:

## Steps to update Pandas

- Activate the environment for Pandas
- Check how Pandas was installed  
  - Pip
  - Anaconda
  - Poetry
- Check current Pandas version - optional
- Upgrade Pandas to  
  - specific version
  - latest version

## Step 2\. Check how Pandas was installed

To start you need to know how Pandas is installed and where. The simplest but not best way is to check which command is working for you:

**To list packages in Pip virtual environment**

```python
pip list

```

or to **check for Anaconda environment** \- get a list of all conda environments

```python
conda info --envs

```

To check Poetry environment use:

```python
poetry show --latest

```

There is a good extra reading on the topic here with best practices: [Using Pip in a Conda Environment](https://www.anaconda.com/blog/using-pip-in-a-conda-environment?ref=datascientyst.com)

## Step 3\. Check current Pandas version

To check which is the current Pandas version you can use:

### 3.1\. Check Pandas version by PIP

```python
!pip list | grep pandas

```

which will show something like:

```
pandas                            1.4.0

```

or the more detailed information by:

```python
!pip show pandas

```

```
Name: pandas
Version: 1.4.0
Summary: Powerful data structures for data analysis, time series, and statistics
Home-page: https://pandas.pydata.org
Author: The Pandas Development Team
Author-email: pandas-dev@python.org
License: BSD-3-Clause
Location: /home/user/Software/Tensorflow/environments/venv38/lib/python3.8/site-packages
Requires: numpy, python-dateutil, pytz
Required-by: altair, bar-chart-race, calmap, calplot, dataframe-image, geopandas, holoviews, ibis-framework, itables, modin, pyLDAvis, qgrid, seaborn, statsmodels, swifter, tabula-py
Note: you may need to restart the kernel to use updated packages

```

### 3.2\. Check current Pandas version in Conda

To check which is the installed Pandas version in Conda use the following:

```python
conda list pandas

```

To find all available versions use:

```python
conda search pandas

```

### 3.3\. Check Pandas package in poetry

```python
poetry show pandas

```

result:

name : pandas  
version : 1.4.0

## 4\. Update Pandas

### 4.1\. Update Pandas with Pip

To install specific version of Pandas by Pip use this format:

```python
pip install pandas==1.3.2

```

and for upgrade to the latest version use:

```python
pip install --upgrade pandas

```

### 4.2\. Update Pandas in Conda

To install specific version of Pandas with Anaconda use this format:

```python
conda install pandas=1.0.2

```

and for update to the latest version use:

```python
conda install pandas

```

### 4.3\. Update Pandas in Poetry

To update Pandas to the latest version in Poetry you can use:

```python
poetry update pandas

```

for a specific version use:

```python
poetry add pandas="1.3.2"

```

Depending on the `.toml` file different versions can be installed. To read more about poetry follow this link: [Poetry update](https://python-poetry.org/docs/cli/?ref=datascientyst.com#update)