Last modified: Jun 18, 2025 By Alexander Williams
How to Uninstall Seaborn in Python
Seaborn is a popular Python library for data visualization. Sometimes, you may need to uninstall it. This guide will show you how.
Table Of Contents
Why Uninstall Seaborn?
You might want to uninstall Seaborn for several reasons. Maybe you need a different version. Or you want to clean up your Python environment.
Uninstalling Seaborn is simple. You can do it using pip or conda. Both methods are effective.
Check if Seaborn is Installed
Before uninstalling, check if Seaborn is installed. Run this command in your terminal or command prompt:
pip show seaborn
Name: seaborn
Version: 0.12.2
Summary: Statistical data visualization
...
If Seaborn is installed, you will see its details. If not, you will get a "not found" message.
Uninstall Seaborn Using pip
The easiest way to uninstall Seaborn is using pip
. Pip is Python's package installer. Here's how to do it:
pip uninstall seaborn
Found existing installation: seaborn 0.12.2
Uninstalling seaborn-0.12.2:
Would remove:
/path/to/seaborn
Proceed (Y/n)? Y
Successfully uninstalled seaborn-0.12.2
Type Y and press Enter to confirm. Seaborn will be uninstalled.
Uninstall Seaborn Using conda
If you use Anaconda, you can uninstall Seaborn with conda
. Run this command:
conda remove seaborn
The following packages will be removed:
seaborn-0.12.2
Proceed ([y]/n)? y
Press y to confirm. Conda will remove Seaborn and its dependencies.
Verify Uninstallation
After uninstalling, verify Seaborn is gone. Run the pip show seaborn
command again.
WARNING: Package(s) not found: seaborn
This message confirms Seaborn is uninstalled. You can also try importing it in Python.
import seaborn as sns
ModuleNotFoundError: No module named 'seaborn'
This error means Seaborn is no longer available.
Common Issues
Sometimes, uninstalling Seaborn may fail. Here are some fixes.
Permission Denied: Run the command with sudo
on Linux/Mac.
sudo pip uninstall seaborn
Multiple Python Versions: Ensure you uninstall from the correct Python version. Use pip3
for Python 3.
If you face more issues, check our guide on how to uninstall Python libraries.
Conclusion
Uninstalling Seaborn is straightforward. Use pip uninstall seaborn
or conda remove seaborn
. Always verify the uninstallation.
Need to uninstall other libraries? Check our guides on uninstalling Matplotlib or uninstalling Pandas.