You may wonder which directory pip installs a package to. For example,
pip install pymupdf
Where does pip install the package pymupdf?
Suppose your python is installed in C:\Python. You will find a sub-directory Scripts under that directory. This is where pip resides, but not the location it installs a package to. There is another sub-directory Lib(not libs). There are lots of sub-directories in Lib, most of them are system libraries python ships, but the sub-directory site-packages is where pip installs packages. For example, the above command will generate two sub-directories under C:\Python\Lib\site-packages\, namely, pymupdf and pymupdf-1.28.0.dist-info. The packages are also called third-party libs.