The Python runtime raised a ModuleNotFoundError exception, see InnerException for details. #595
Unanswered
luciusinfabula
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to this very awesome library and making first steps because I would implement IA using Python modules directly from C#.
I have installed Python in "C:\Users\lucdm\AppData\Local\Programs\Python\Python39".
I setup services:
builder.Services.WithPython().WithHome(home).FromFolder(pythonFolder, "3.9");
where:
home is the folder inside the project containing my python scripts;
pythonFolder is the folder where python is installed (the above path).
All is ok but if I try to call kmeans_example.py example raises the error:
CSnakes.Runtime.PythonInvocationException: 'The Python runtime raised a ModuleNotFoundError exception, see InnerException for details.'
Inner Exception:
PythonRuntimeException: No module named 'sklearn'
Sklearn is correctly installed inside python folder installation C:\Users\lucdm\AppData\Local\Programs\Python\Python39\Lib\site-packages\sklearn and if I run the kmeans_example.py as python script it works perfect.
What I'm doing wrong with config?
Thanks for you kindly reply.
Luciano
Beta Was this translation helpful? Give feedback.
All reactions