Skip to content

Commit 09a3d64

Browse files
committed
fix pip conflict
1 parent a0f4a2f commit 09a3d64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build_scripts/android/install_prereqs.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ else
4545
echo "Installing python packages."
4646
set -x
4747
# On Windows bash shell, sudo doesn't exist
48-
if [[ $(uname) == "Linux" ]] || [[ $(uname) == "Darwin" ]]; then
48+
if [[ $(uname) == "Darwin" ]]; then
49+
sudo python3 -m pip install --upgrade pip
50+
elif [[ $(uname) == "Linux" ]]; then
51+
# system pip conflicts with python3 pip install
52+
sudo apt remove python3-pip
4953
sudo python3 -m pip install --upgrade pip
5054
else
5155
python3 -m pip install --upgrade pip

0 commit comments

Comments
 (0)