{"id":6424,"library":"pycaret","title":"PyCaret","description":"PyCaret is an open-source, low-code machine learning library in Python that streamlines end-to-end machine learning workflows, from data preparation to model deployment. It is currently at version 3.3.2 and maintains an active release schedule, frequently delivering minor updates for bug fixes and dependency compatibility, alongside significant major releases that introduce new features and breaking API changes. [1, 13, 14, 15]","status":"active","version":"3.3.2","language":"python","source_language":"en","source_url":"https://github.com/pycaret/pycaret","tags":["machine-learning","low-code","automl","data-science","classification","regression","time-series"],"install":[{"cmd":"pip install pycaret","lang":"bash","label":"Basic Installation"},{"cmd":"pip install pycaret[full]","lang":"bash","label":"Full Installation (includes all optional dependencies)"}],"dependencies":[{"reason":"Requires Python 3.9 or later.","package":"python","optional":false}],"imports":[{"wrong":"from pycaret.datasets import get_data","symbol":"get_data","correct":"from pycaret.datasets import get_data"}],"quickstart":{"code":"import pandas as pd\nfrom pycaret.datasets import get_data\nfrom pycaret.classification import *\n\n# Load a sample dataset\ndata = get_data('diabetes')\n\n# Initialize the setup (classification experiment)\n# Use silent=True for non-interactive environments and session_id for reproducibility\nclf1 = setup(data=data, target='Class variable', session_id=123, silent=True)\n\n# Compare all available models and select the best one\nbest_model = compare_models()\n\n# Make predictions on the hold-out set\npredictions = predict_model(best_model)\n\n# Save the trained model pipeline\nsave_model(best_model, 'diabetes_best_pipeline')","lang":"python","description":"This quickstart demonstrates a typical PyCaret classification workflow using the functional API. It involves loading a dataset, initializing the environment with `setup()`, comparing multiple models with `compare_models()`, making predictions, and saving the best performing model. [1, 7, 10, 11]"},"warnings":[{"fix":"Refer to the PyCaret 3.x documentation and tutorials for updated API usage. Consider rewriting or adapting existing PyCaret 2.x code.","message":"PyCaret 3.0 introduced significant API changes, making code written for PyCaret 2.x largely incompatible without modifications. [4, 9]","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Ensure your Python environment is running Python 3.9 or newer.","message":"Python 3.7 support was dropped in PyCaret 3.1.0, and Python 3.8 support was dropped in PyCaret 3.3.0. [4]","severity":"breaking","affected_versions":">=3.1.0 (for Python 3.7), >=3.3.0 (for Python 3.8)"},{"fix":"Remove calls to `deep_check()` and `eda()`. Use alternative data exploration or preprocessing methods if needed.","message":"The `deep_check` and `eda` functions were removed in PyCaret 3.1.0 and will raise exceptions if called. [4]","severity":"breaking","affected_versions":">=3.1.0"},{"fix":"For automated scripts, pass `silent=True` to suppress prompts. Always include `session_id` for reproducibility, e.g., `setup(data=data, target='target_col', session_id=123, silent=True)`.","message":"The `setup()` function is interactive by default, prompting the user for data type confirmation. This can halt execution in non-interactive environments. [1, 10]","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always install PyCaret in a clean virtual environment. Consult the official documentation for specific dependency requirements for your PyCaret version, or upgrade to the latest PyCaret to benefit from broader dependency support.","message":"PyCaret 3.x has had specific dependency version constraints. For instance, PyCaret 3.0.4 pinned `scikit-learn<1.3.0` and 3.0.1 pinned `numpy<1.24`. While newer PyCaret 3.x versions (e.g., 3.3.0) support `scikit-learn 1.4` and `pandas 2.0`, users might encounter conflicts if not using the latest compatible PyCaret version. [4, 9]","severity":"gotcha","affected_versions":"Various 3.x versions"},{"fix":"If upgrading from 3.0.0, re-evaluate model performance and selection as results may differ. The changes were intended to be bug fixes, leading to more accurate evaluations in later versions.","message":"The behavior and results of `compare_models()` might have changed significantly between PyCaret 3.0.0 and versions >= 3.0.1 due to internal bug fixes affecting model performance evaluation. [18]","severity":"gotcha","affected_versions":"3.0.1 - 3.x.x (compared to 3.0.0)"}],"env_vars":null,"search_vec":"'1':65 '13':66 '14':67 '15':68 '3.3.2':36 'activ':40 'alongsid':53 'api':63 'automl':75 'break':62 'bug':48 'chang':64 'classif':79 'code':10,74 'compat':52 'current':33 'data':26,77 'data-sci':76 'deliv':44 'depend':51 'deploy':30 'end':19,21 'end-to-end':18 'featur':60 'fix':49 'frequent':43 'introduc':58 'learn':12,23,71 'librari':13 'low':9,73 'low-cod':8,72 'machin':11,22,70 'machine-learn':69 'maintain':38 'major':55 'minor':45 'model':29 'new':59 'open':6 'open-sourc':5 'prepar':27 'pycaret':1,2 'python':15 'regress':80 'releas':41,56 'schedul':42 'scienc':78 'seri':83 'signific':54 'sourc':7 'streamlin':17 'time':82 'time-seri':81 'updat':46 'version':35 'workflow':24","created_at":"2026-04-15T05:36:42.724242+00:00","updated_at":"2026-04-16T18:21:31.202587+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpvntfhkje/venv/lib/python3.12/site-packages/pycaret/__init__.py\", line 22, in <module>\n    raise RuntimeError(\nRuntimeError: ('Pycaret only supports python 3.9, 3.10, 3.11. Your actual Python version: ', sys.ver"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.3.2","cli_name":"","cli_version":null,"type":"library","homepage":"https://pycaret.org","github":"https://github.com/pycaret/pycaret","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pycaret/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","data","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}