diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 3c1bdfc54c12e..0737408a7e43c 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -2087,7 +2087,7 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs): run_subprocess( [sys.executable, "-m", "pip", "uninstall", "--yes", "onnx"], cwd=cwd, dll_path=dll_path ) - run_subprocess([sys.executable, "-m", "pip", "install", "-q", "onnx"], cwd=cwd, dll_path=dll_path) + run_subprocess([sys.executable, "-m", "pip", "install", "-q", "onnx==1.15.0"], cwd=cwd, dll_path=dll_path) run_subprocess([sys.executable, "onnxruntime_test_python_iobinding.py"], cwd=cwd, dll_path=dll_path) if args.use_cuda: