Julia 1.0.0 on Windows 10 using PyPlot compiler error because it can't load library expected at: .julia\\packages\\Conda\\m7vem\\deps\\usr\\python37\

可紊 提交于 2020-01-06 06:53:27

问题


I'm trying to get matplotlib working with Julia 1.0.0.
Installed it but get error when I try to test it by doing this...

ENV["PYTHON"]="c:\\ProgramData\\Anaconda3\\python.exe"
using Pkg
Pkg.add("PyPlot")
using PyPlot

...which gets this error:

ErrorException("error compiling display_error: error compiling findprev: error compiling lookup: error compiling Type: could not load library \"C:\\Users\\ME\\.julia\\packages\\Conda\\m7vem\\deps\\usr\\python37\"\nThe specified module could not be found.\r\n")

Here is what I have at: .julia\packages\Conda\m7vem\deps\usr\


回答1:


In order to configure an external Python with Julia do the following steps.

ENV["PYTHON"]="c:\\ProgramData\\Anaconda3\\python.exe"

Now press ] and in the (v1.0) pkg> prompt type:

build PyCall
build PyPlot

Now press backspace to return to the normal REPL.

I suppose you installed PyCall before setting the Python path. Python path change requires a package rebuild.



来源:https://stackoverflow.com/questions/52228402/julia-1-0-0-on-windows-10-using-pyplot-compiler-error-because-it-cant-load-libr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!