From 4f9404a6354f5442f4316c968356dd5aeec69c54 Mon Sep 17 00:00:00 2001 From: xuxinyi389 <104957571+xuxinyi389@users.noreply.github.com> Date: Fri, 21 Jul 2023 19:19:17 +0800 Subject: [PATCH] Fixed setuptools==57.4.0 (#55604) --- paddle/scripts/paddle_build.bat | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index b0ea6905c94cf..2e1dd699e1e5b 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -105,10 +105,12 @@ if %ERRORLEVEL% NEQ 0 ( if "%WITH_PYTHON%" == "ON" ( where python where pip - pip install wheel - pip install pyyaml - pip install wget - pip install -r %work_dir%\python\requirements.txt + python -m pip install --upgrade pip + python -m pip install setuptools==57.4.0 + python -m pip install wheel + python -m pip install pyyaml + python -m pip install wget + python -m pip install -r %work_dir%\python\requirements.txt if !ERRORLEVEL! NEQ 0 ( echo pip install requirements.txt failed! exit /b 5