diff --git a/onnxruntime/test/python/requirements.txt b/onnxruntime/test/python/requirements.txt index e33fe0e4da..dc158e0eeb 100644 --- a/onnxruntime/test/python/requirements.txt +++ b/onnxruntime/test/python/requirements.txt @@ -1,2 +1,2 @@ -onnx -pytest \ No newline at end of file +onnx==1.15.0 +pytest diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 3c1bdfc54c..e1649ae251 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -2087,7 +2087,9 @@ 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: