The Python package sklearn could not be imported by pyimport. Usually this means
that you did not install sklearn in the Python version being used by PyCall.
So I install sklearn to python, cmd ‘python -m pip show scikit-learn’ shows I have it.
I use ‘’'ENV[“PYTHON”]=“” to the result I get when I use “where python” in cmd (I tried both results) and Pkg.build(“PyCall”) as other questions suggested, but this yields a StackOverflowError
Does anybody know how to install sklearn such that I can install some packages? Thanks in advance.
Thank you, but when I do Pkg.add(“ScikitLearn”), it throws warnings about other packages I’m trying to install, and ?ScikitLearn says it didnt install.
The ] key will change the Julia prompt into a package manager. You can exit the package manager with backspace.
If the installation is succesful with the commands above, then you are probably trying to install the package in an environment with other conflicting packages. If it fails, I suggest opening an issue on the ScikitLearn.jl GitHub page.