Python – How do I remove /root/.local/lib/python 2.7?

How do I remove /root/.local/lib/python 2.7?… here is a solution to the problem.

How do I remove /root/.local/lib/python 2.7?

I don’t know /root/.local/lib/python2.7… Whether it affects other functionality

Some packages were mistakenly installed by sudo pip install --user package in /root/.local/lib/python2.7/….

During the process of unloading some packages using sudo pip uninstall --user package, the /root/.local/lib/python2.7 directory remains.
I’m afraid that unexpected problems keep coming up when updating other packages. So I want to delete that directory completely.

How do I completely remove /root/.local/lib/python2.7?

If I use rm directly to remove /root/.local/lib/python 2.7 does it cause another problem?

Solution

How to remove /root/.local/lib/python2.7 totally?

sudo rm -rf /root/.local/lib/python2.7

Does it invoke another problems if I remove /root/.local/lib/python2.7 directly by rm?

No. This directory is not used for system python scripts. arrive
To be on the safe side, you can rename it and wait a few days
Remove completely.

Related Problems and Solutions