Skip to content

A programming framework for agentic AI

Require numpy be a 1.x release (#1966)

Jack Gerritsc2663330af86
diff --git a/setup.py b/setup.py
index 4debf3c81..c7b3e319b 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,8 @@ install_requires = [
"diskcache",
"termcolor",
"flaml",
+ # numpy is installed by flaml, but we want to pin the version to below 2.x (see https://github.com/microsoft/autogen/issues/1960)
+ "numpy>=1.17.0,<2",
"python-dotenv",
"tiktoken",
# Disallowing 2.6.0 can be removed when this is fixed https://github.com/pydantic/pydantic/issues/8705