I am trying to implement SMOTE in Orange Web Services, but having troubles with the imblearn module.

Following screenshot is from Orange Python Script widget:

from imblearn import under_sampling, over_sampling
from imblearn.over_sampling import SMOTE

enter image description here

I can import it without problems with Python: enter image description here


1 Answer 1


The one in Orange's Python Script widget and the one in cmd are obviously not the same Python environments. Confirm by inspecting:

import sys

Fix the issue by installing imblearn into the Orange's Python environment.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.