Doug Null
Doug Null

Reputation: 8327

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\

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\

enter image description here

Upvotes: 0

Views: 272

Answers (1)

Przemyslaw Szufel
Przemyslaw Szufel

Reputation: 42234

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.

Upvotes: 2

Related Questions