We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60beaad commit bbd8d2eCopy full SHA for bbd8d2e
ci_scripts/gendoc.sh
@@ -15,9 +15,14 @@ export DOCROOT
15
16
# install paddle if not installed yet.
17
# PADDLE_WHL is defined in ci_start.sh
18
-pip3 list --disable-pip-version-check | grep paddlepaddle > /dev/null
19
-if [ $? -ne 0 ] ; then
+if ! pip3 list --disable-pip-version-check | grep paddlepaddle; then
+ echo "Paddle is not found, attempting to install from ${PADDLE_WHL}..."
20
pip3 install --no-cache-dir -q --progress-bar off -i https://pypi.tuna.tsinghua.edu.cn/simple ${PADDLE_WHL}
21
+ if [ $? -ne 0 ]; then
22
+ echo -e "\e[31mError: Failed to install paddle from ${PADDLE_WHL}\e[0m"
23
+ exit 1
24
+ fi
25
+ echo "Paddle installed successfully."
26
fi
27
28
0 commit comments