In Julia I am using the module PyCall
using PyCall: @pyimport
When I then try to use the scikitlearn library's module called ensamble, there is no problem, it works and I can use the module:
@pyimport sklearn.ensemble as skle
However when I try to do the same with the PIL library or PIL library's module Images, it doesn't work.
@pyimport PIL.Image as PILI
I get the following error: ERROR: PyError (:PyImport_ImportModule) ImportError('No module named PIL.Image',)
[inlined code] from /home/lara/.julia/v0.4/PyCall/src/exception.jl:81 in pyimport at /home/lara/.julia/v0.4/PyCall/src/PyCall.jl:387
Can someone please talk me through the steps to get this working becasue I don't see how this is different from the scikit learn library and ensamble module.
@pyimport Image
work? Otherwise, PyCall might be pointing to a different Python install that doesn't have PIL. Checksys.path
in python repl, and compare to@pyimport sys as pysys; pysys.path
in Julia. If that's the issue, try github.com/JuliaPy/PyCall.jl#specifying-the-python-version – Isaiah Norton