diff --git a/python/requirements.txt b/python/requirements.txt index 59ce5d7448f18..e78259a5028cd 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -60,5 +60,5 @@ starlette typer fsspec pandas>=1.3 -pydantic +pydantic<2 py-spy>=0.2.0 diff --git a/python/setup.py b/python/setup.py index 01d02d4276e50..272005901bb8e 100644 --- a/python/setup.py +++ b/python/setup.py @@ -250,7 +250,7 @@ def get_packages(self): "requests", "gpustat >= 1.0.0", # for windows "opencensus", - "pydantic", + "pydantic < 2", # 2.0.0 brings breaking changes "prometheus_client >= 0.7.1", "smart_open", "virtualenv >=20.0.24, < 20.21.1", # For pip runtime env.