Last modified: Jun 20, 2025 By Alexander Williams

How to Uninstall Plotly in Python

Plotly is a popular library for creating interactive visualizations. Sometimes, you may need to uninstall it. This guide will help you remove Plotly cleanly.

Why Uninstall Plotly?

You might need to uninstall Plotly for various reasons. Maybe you want to free up space or switch to another library like Matplotlib.

Other times, conflicts with dependencies may arise. A clean reinstall can fix issues.

Check if Plotly Is Installed

Before uninstalling, check if Plotly is installed. Use the pip show command in your terminal.


pip show plotly


Name: plotly
Version: 5.18.0
Summary: An open-source, interactive graphing library for Python

If Plotly is installed, you will see its details. If not, you'll get a "not found" message.

Uninstall Plotly Using Pip

The easiest way to uninstall Plotly is using pip. Run the following command.


pip uninstall plotly


Found existing installation: plotly 5.18.0
Uninstalling plotly-5.18.0:
  Would remove:
    /path/to/plotly
Proceed (Y/n)? Y
  Successfully uninstalled plotly-5.18.0

Confirm the uninstallation by typing Y. This will remove Plotly from your Python environment.

Uninstall Plotly Using Conda

If you use Anaconda, you can uninstall Plotly with conda. Run this command.


conda remove plotly


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

Press y to confirm. Conda will remove Plotly and its dependencies.

Verify Plotly Is Uninstalled

After uninstalling, verify Plotly is gone. Use pip show plotly again.


pip show plotly


WARNING: Package(s) not found: plotly

This confirms Plotly is no longer installed. You can also check in Python.

 
import plotly


ModuleNotFoundError: No module named 'plotly'

Clean Up Residual Files

Sometimes, leftover files remain. Check your Python site-packages directory.


ls /path/to/site-packages/ | grep plotly

If any files appear, delete them manually. This ensures a complete removal.

Reinstall Plotly (Optional)

If you need Plotly again, reinstall it using pip or conda.


pip install plotly

This will install the latest version. Check out how to uninstall TensorFlow if you need help with other libraries.

Conclusion

Uninstalling Plotly is simple with pip or conda. Always verify the removal to avoid conflicts. For more guides, see how to uninstall scikit-learn.

Now you know how to cleanly remove Plotly from your Python environment. Happy coding!