PyOD is designed for easy installation using either pip or conda. We recommend using the latest version of PyOD due to frequent updates and enhancements:
pip install pyod # normal install pip install --upgrade pyod # or update if needed
conda install -c conda-forge pyod
Alternatively, you could clone and run setup.py file:
git clone https://github.com/yzhao062/pyod.git cd pyod pip install .
Python 3.6 or higher
Optional Dependencies (see details below):
combo (optional, required for models/combination.py and FeatureBagging)
keras/tensorflow (optional, required for AutoEncoder, and other deep learning models)
suod (optional, required for running SUOD model)
xgboost (optional, required for XGBOD)
pythresh (optional, required for thresholding)
PyOD includes several neural network-based models, such as AutoEncoders, implemented in Tensorflow and PyTorch. These deep learning libraries are not automatically installed by PyOD to avoid conflicts with existing installations. If you plan to use neural-net based models, please ensure these libraries are installed. See the neural-net FAQ for guidance. Additionally, xgboost is not installed by default but is required for models like XGBOD.