From b8e4d74e1143875296732919b818db80936453e4 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 29 Jun 2023 16:00:19 +0800 Subject: [PATCH] fix windows ci install whl (#54946) * fix windows ci install whl * fix bce * update install whl --- paddle/scripts/paddle_build.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 5bc7ca8905e66..999095688c3aa 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -580,7 +580,7 @@ if "%UPLOAD_TP_FILE%"=="ON" ( echo Download package from https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz python -c "import wget;wget.download('https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz')" python -c "import shutil;shutil.unpack_archive('bos_new.tar.gz', extract_dir='./bce-python-sdk-new',format='gztar')" - python -m pip install bce-python-sdk + python -m pip install bce-python-sdk==0.8.74 ) if !errorlevel! EQU 0 ( cd /d %THIRD_PARTY_HOME% @@ -650,6 +650,10 @@ set /p PADDLE_WHL_FILE_WIN=< whl_file.txt pip uninstall -y paddlepaddle pip uninstall -y paddlepaddle-gpu pip install %PADDLE_WHL_FILE_WIN% +%PYTHON_ROOT%\python.exe -m pip uninstall -y paddlepaddle +%PYTHON_ROOT%\python.exe -m pip uninstall -y paddlepaddle-gpu +%PYTHON_ROOT%\python.exe -m pip install %PADDLE_WHL_FILE_WIN% + if %ERRORLEVEL% NEQ 0 ( echo pip install whl package failed! exit /b 1