During the 0.6 alpha process, it seemed that every time I downloaded a new Julia version, using ScikitLearn
would fail with the error: Module ScikitLearn declares precompile(true) but require failed to create a usable precompiled cache file.
Restarting the Julia session always fixed the problem, but it seems to affect other users too. Is there anything I (as the package author) can do about it? Anyone else has encountered this?
I suspect you probably know all about this, but there are some subtleties when precompiling modules that import Python code (since those imports have to happen when the module is actually loaded, not at precompile time). Where in SciKitLearn does the call to import the Python modules actually happen? (I poked around in the code but couldn’t figure that out easily).
1 Like
ScikitLearn.jl is Python-free by default; it installs and loads the Python scikit-learn
library only when requested by the user via @sk_import
. But that’s a good point, there is some left-over PyCall code that should be updated.