diff --git a/libs/cli/langgraph_cli/config.py b/libs/cli/langgraph_cli/config.py index 2d2c90526..3fc00e119 100644 --- a/libs/cli/langgraph_cli/config.py +++ b/libs/cli/langgraph_cli/config.py @@ -82,6 +82,14 @@ def _get_pip_cleanup_lines( echo "Dependency resolution check failed. One or more installed packages are incompatible."; \ echo "Pin compatible versions in your dependencies and try again."; \ exit 1 \ +)""" + ) + elif pip_installer == "pip": + commands.append( + """RUN python -m pip check || ( \ +echo "Dependency resolution check failed. One or more installed packages are incompatible."; \ +echo "Pin compatible versions in your dependencies and try again."; \ +exit 1 \ )""" ) commands.append(