Delete a package

Dear developers,
I want to know how to uninstall a package from the slicer’s python, since I have tried many ways but not work.
Best wishes,
Joshua

/path/to/Slicer -m pip uninistall

1 Like

You can also use slicer.util.pip_uninstall() function. You may need to restart Slicer after this if the package was loaded when you tried to uninstall it.

2 Likes

Sorry, but I tried this way, it says

There was a typo - it should be uninstall

1 Like