Last modified: Jun 18, 2025 By Alexander Williams

How to Uninstall Pandas in Python

Pandas is a popular Python library for data analysis. Sometimes, you may need to uninstall it. This guide explains how.

Why Uninstall Pandas?

You might need to uninstall Pandas to free up space, fix conflicts, or install a different version. It's a simple process.

Check if Pandas is Installed

Before uninstalling, verify if Pandas is installed. Use the pip show command.

 
pip show pandas


Name: pandas
Version: 1.3.4
Summary: Powerful data structures for data analysis

If Pandas is installed, you'll see details like version and summary. If not, you'll get a "not found" message.

Uninstall Pandas Using pip

The easiest way to uninstall Pandas is with pip uninstall. Run this command in your terminal.

 
pip uninstall pandas


Uninstalling pandas-1.3.4:
  Would remove:
    /path/to/pandas
Proceed (y/n)? y
  Successfully uninstalled pandas-1.3.4

Confirm the uninstallation by typing y. Pandas will be removed from your system.

Uninstall Pandas Using conda

If you use Anaconda, use conda remove instead. This ensures clean removal.

 
conda remove pandas


The following packages will be removed:
  pandas
Proceed ([y]/n)? y

Press y to confirm. Conda will handle dependencies automatically.

Verify Uninstallation

After uninstalling, check if Pandas is removed. Use pip show again.

 
pip show pandas


WARNING: Package(s) not found: pandas

This confirms Pandas is no longer installed. You can also try importing it in Python.

 
import pandas


ModuleNotFoundError: No module named 'pandas'

Reinstall Pandas if Needed

If you uninstalled Pandas by mistake, reinstall it easily. Use pip install.

 
pip install pandas

This will download and install the latest version of Pandas.

Common Issues

Sometimes, uninstallation fails due to permissions. Use --user or run as admin.

If you face dependency issues, check our guide on how to uninstall NumPy in Python.

Conclusion

Uninstalling Pandas in Python is simple. Use pip uninstall or conda remove. Always verify after removal.

For more tips, see our guides on how to uninstall Python libraries and how to uninstall pip.