infra: poetry run min versions 2
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index c05d92c156a428..ef0c50f767df3c 100644
--- a/.github/workflows/_release.yml
+++ b/.github/workflows/_release.yml
@@ -183,7 +183,9 @@ jobs:
 
       - name: Get minimum versions
         id: check-version
-        run: echo "min-versions=$(poetry run python $GITHUB_WORKSPACE/.github/scripts/get_min_versions.py pyproject.toml)" >> $GITHUB_OUTPUT
+        run: |
+          poetry run pip install packaging
+          echo "min-versions=$(poetry run python $GITHUB_WORKSPACE/.github/scripts/get_min_versions.py pyproject.toml)" >> $GITHUB_OUTPUT
 
       - name: Run unit tests with minimum dependency versions
         env:
