Forums

(pip) Permission denied during uninstall even with --User flag

Unable to uninstall any packages in the console. I need to install opencv and tensorflow(>2.2) for my project, however doing this exceeds my disk quota. When I attempt to uninstall other packages to free up space, using e.g:

pip3.8 uninstall scikit-learn

I get a Permission denied error. When trying to fix this using the --User flag

pip3.8 uninstall --user scikit-learn

I get an error message: no such option: --user.

How can I uninstall existing packages to free up space?

Was that a specific version of scikit-learn installed by you? You can't uninstall packages installed globally for all the users.