# 安装 从 PyPI 安装: ```bash pip install pysmatch ``` 安装可选依赖: ```bash pip install "pysmatch[tree]" # 启用 CatBoost pip install "pysmatch[tune]" # 启用 Optuna pip install "pysmatch[all]" # 启用全部可选依赖 ``` 从源码安装: ```bash git clone https://github.com/miaohancheng/pysmatch.git cd pysmatch pip install -e ".[all]" ```