LaTeX paths (target paths) of various macro packages: g: \ texlive 2020 \ texlive \ 2020 \ texmf-dist \ tex \ latex.
There are many folders under this path, and each folder can be regarded as a macro package with a series. Sty files in each folder. -If the installation path and naming are different from this article, you can use everything software to search. Sty keyword to see where most of these files are concentrated, which is the storage address of our macro package.
The third-party macro package to be installed in this paper is: PGF school. Draw cakes with tikz.
Create a folder with the same name under the target path: pgf-pie, and put the pgf-pie.sty file into it.
Right-click the Start menu and select Open cmd as Administrator:
Input: tex hash- refresh macro package library (note that you must be an administrator to refresh this step! The refresh process takes about 2 minutes. )
Import macro packages into the written. Tex file and run it again. Note: Macro package name and. Sty file name (and created folder name), namely: \usepackage{pgf-pie}