julia 安装 PyPlot 求助

julia> Pkg.build(“PyCall”)
Building Conda ─→ C:\Users\lenovo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6cdc8832ba11c7695f494c9d9a1c31e90959ce0f\build.log
Building PyCall → C:\Users\lenovo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\71fd4022ecd0c6d20180e23ff1b3e05a143959c2\build.log

julia> Pkg.build(“PyPlot”)
Building Conda ─→ C:\Users\lenovo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6cdc8832ba11c7695f494c9d9a1c31e90959ce0f\build.log
Building PyCall → C:\Users\lenovo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\71fd4022ecd0c6d20180e23ff1b3e05a143959c2\build.log

julia> using PyPlot
[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
ERROR: LoadError: InitError: could not load symbol “Py_CompileString”:
The specified procedure could not be found.
Stacktrace:
[1] macro expansion…
求前辈们指点怎么解决!?

请问你的python环境有没有安装matplotlib库,没有的话使用using PyPlot确实会报错

你可以试试

using PyCall
plot = pyimport("matplotlib")

看看会不会报错

是的有这个报错,我现在安装一下再试试,谢谢您的回复!

感谢!问题已经解决!