Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Orange.data.Table
✓ from Orange.data import Table
✗ import Orange; Orange.data.Table
Direct import is idiomatic; avoid importing the top-level Orange module and then accessing submodules.
Orange.preprocess
✓ from Orange.preprocess import Normalize, Continuize, Impute
✗ import Orange.preprocess; p = Orange.preprocess.Normalize()
Submodule imports are clearer and avoid long chained accesses.
Orange.evaluation
✓ from Orange.evaluation import CrossValidation, scoring
✗ import Orange.evaluation.CrossValidation
CrossValidation is a class in orange.evaluation module, not a submodule.
Loads the Iris dataset, normalizes features, trains a Random Forest, and evaluates with 5-fold cross-validation.
from Orange.data import Table
from Orange.preprocess import Normalize
from Orange.classification import RandomForestLearner
from Orange.evaluation import CrossValidation, scoring
# Load dataset (automatically downloads if not present)
data = Table('iris')
# Preprocess: normalize features
normalizer = Normalize()
data_norm = normalizer(data)
# Train a random forest model
learner = RandomForestLearner(n_estimators=50, random_state=42)
# Cross-validation
results = CrossValidation(data_norm, [learner], k=5)
print('CA:', scoring.CA(results)[0])
orange-canvas --version
Errors
Common errors & fixes
ImportError: cannot import name 'Table' from 'Orange.data'
Typo or outdated Orange version; Table is in Orange.data since Orange 3.x. In Orange 2.x it was Orange.OrangeTable.
fixEnsure you have orange3 (not orange) installed: pip install orange3 and use 'from Orange.data import Table'.
ModuleNotFoundError: No module named 'PyQt5'
Orange3 GUI requires PyQt5; missing on some headless Linux systems or Python installations without Qt.
fixInstall PyQt5: pip install PyQt5 or use conda: conda install pyqt. Alternatively, set environment variable DISPLAY if using GUI.
Upgrade
Version history
3.40.0latest on PyPI · released Dec 20, 2025
Audit
Dependencies
numpyrequiredCore numerical dependency
scipyrequiredScientific computing
scikit-learnrequiredMachine learning algorithms
PyQt5requiredGUI framework (automatically installed on Linux/macOS, may conflict on Windows if preinstalled)