Last modified: Jun 20, 2025 By Alexander Williams

How to Uninstall Bokeh in Python

Bokeh is a popular Python library for creating interactive visualizations. Sometimes, you may need to uninstall it. This guide will show you how.

Why Uninstall Bokeh?

You might need to uninstall Bokeh for several reasons. Maybe you want to free up space. Or you need to switch to another library like Plotly.

Another reason could be version conflicts. Reinstalling Bokeh often fixes issues. First, you must remove the current version.

Check If Bokeh Is Installed

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

 
pip show bokeh


Name: bokeh
Version: 2.4.3
Summary: Interactive plots and applications in the browser from Python
...

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

Uninstall Bokeh Using pip

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

 
pip uninstall bokeh

You'll see a confirmation prompt. Type y and press Enter. This will remove Bokeh and its dependencies.


Proceed (y/n)? y
Successfully uninstalled bokeh-2.4.3

Uninstall Bokeh Using conda

If you used conda to install Bokeh, use this command instead.

 
conda remove bokeh

Conda will list the packages to be removed. Confirm by typing y. This ensures a clean removal.

Verify Uninstallation

After uninstalling, verify Bokeh is gone. Run the pip show command again.

 
pip show bokeh


WARNING: Package(s) not found: bokeh

This confirms Bokeh was successfully uninstalled.

Troubleshooting

Sometimes, Bokeh might not uninstall cleanly. Here are some fixes.

Permission Issues

If you get permission errors, try adding --user to the command.

 
pip uninstall bokeh --user

Residual Files

Check for leftover files in your Python site-packages folder. Delete any Bokeh-related folders manually.

Reinstall Before Uninstalling

If uninstall fails, try reinstalling Bokeh first. Then uninstall it again.

 
pip install bokeh
pip uninstall bokeh

Conclusion

Uninstalling Bokeh is simple with pip or conda. Always verify the removal was successful. For other libraries, check our guides on TensorFlow or PyTorch.

Remember, clean uninstalls help avoid conflicts. This keeps your Python environment healthy.