Forums

uninstalling libraries in the .local folder

I have an active Django app.
I tried to disable the app and run pip uninstall because there were unnecessary libraries other than in the requirements.txt, but the following error occurred:
PermissionError: [Errno 13] Permission denied: '__init__.cpython-39.pyc'
PermissionError: [Errno 13] Permission denied: 'top_level.txt'
PermissionError: [Errno 13] Permission denied: 'greenlet.h'
How can I uninstall it properly?

Looks like you try to uninstall something that is pre-installed not something from .local. What is the command that you run?

pip uninstall absl-py -y; pip uninstall aggdraw -y; pip uninstall alabaster -y; ... pip uninstall zope.viewlet -y;

So, some of them were not installed by you in the .local Maybe consider running your web app in the virtual environment. That would make your situation clear for you.

Thank you for the advice