In which directory of Linux are the packages (packages) installed by Python pip located?

1. If it is a package installed by an ordinary user, it will generally be placed in this directory

/home/$HOME/.local/lib/python3.10/site-packages/

As shown below

 If it is a system administrator user (such as: root), the package installed by pip will generally be placed in this directory

/usr/lib/python3.10/site-packages

If we want to delete these packages, we need to use the pip package management tool to delete these packages. We cannot manually use the rm command to delete these packages, otherwise problems will occur.

Guess you like

Origin blog.csdn.net/weixin_53064820/article/details/129771690
Recommended