Last modified: Jun 23, 2025 By Alexander Williams
How to Uninstall nbconvert in Python
nbconvert is a tool for converting Jupyter Notebooks to other formats. If you no longer need it, uninstalling it is simple. This guide will help you remove it properly.
Why Uninstall nbconvert?
You might want to uninstall nbconvert to free up space or resolve conflicts. It's also useful if you're switching to another tool.
Before uninstalling, ensure you don't need it for other projects. Check dependencies to avoid issues.
Check if nbconvert Is Installed
First, verify if nbconvert is installed. Use the pip show
command in your terminal.
pip show nbconvert
If installed, you'll see details like version and location. If not, you'll get a "not found" message.
Uninstall nbconvert Using pip
The easiest way to uninstall nbconvert is with pip uninstall
. Run this command:
pip uninstall nbconvert
Confirm the action when prompted. This removes nbconvert and its dependencies.
Verify Uninstallation
After uninstalling, check if nbconvert is still present. Use the pip show
command again.
pip show nbconvert
If uninstalled correctly, you'll see a "not found" message. This confirms removal.
Remove Residual Files
Sometimes, pip leaves residual files. Manually delete them if needed. Check common locations like:
/usr/local/lib/pythonX.Y/site-packages/
~/.local/lib/pythonX.Y/site-packages/
Replace X.Y
with your Python version. Delete any nbconvert-related folders.
Reinstall nbconvert if Needed
If you uninstalled nbconvert by mistake, reinstall it easily. Use the pip install
command.
pip install nbconvert
This will restore nbconvert to your system. Always double-check before uninstalling.
Troubleshooting Common Issues
If you face issues, try these solutions:
- Use
pip3
instead ofpip
for Python 3. - Run the command as admin or with
sudo
on Linux/macOS. - Check for multiple Python versions.
For more help, refer to our guide on How to Uninstall Jupyter Notebook.
Conclusion
Uninstalling nbconvert is straightforward with pip uninstall
. Always verify removal and clean residual files. Reinstall if needed.
For related guides, see How to Uninstall IPython in Python or How to Uninstall JupyterLab.