I had the same situation and I’ll share here my learnings. First of it all, I’m more in the “fans” side of Julia, (as opposite to expert) so my comments may not be expressed in pure wording.
Conceptually I believe PyPlot, with its core functionality available from Python get’s connected to Julia by using PyCall. When doing the typical Pkg.add(“PyPlot”) in Julia, Julia needs a way to re-build PyPlot and PyCall. The issue rises in PyCall, as that’s the one “talking” to the core functionalities of Matplotlib created in Python, so the build process needs Python. All troubles I has was related to the build process not being able to “find” Python in my machine. I tried Python 3.8 and I couldn’t make it work as the file where Python is installed gets a really restrictive access policy. The same does not happen to 3.7, so I moved back to 3.7. Once there I made sure the file where Phyton.exe is available where added to the Windows PATH. and in the ENV[“PYTHON”] =“python.exe”, as the rest for finding python is the the PATH System Variable. During the trial -error process with Python 3.8 , and enabling som debugging options prompted in the error mesagge it was clear the error was by not allowing Python.3.8.exe or the other required dlls to be accessed, and I couldn’t change that in my Windows (I as runing admin priv, but it was complettely locked).
Well…Once I adjusted to 3.7 , and the PATH and the ENV[“PYTHON”], the Pkg.build(“PyCall”)
worked ok, but when tried to issue the “using PyPlot” a new error came up. In fact i had to re -instal matplotlib now in Python 3.7 by using the console and the "python -m pip install -U pip
python -m pip install -U matplotlib "… There the PyPlot–>PyCall–>Matplotlib chain was complette and the package finally ran ok. I’m sure there sould be a way with Python 3.8, but I didn’t find it. Hope this helps