Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix get-pip.py compatibility problem with Python3.5 (#5356)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzy46 authored Mar 9, 2021
1 parent 724961c commit cf48368
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/kubespray/script/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ echo "Install necessray packages"

echo "Install Python3 and pip"
sudo apt-get -y update
sudo apt-get -y install software-properties-common python3 python3-dev
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
sudo apt-get -y install software-properties-common python3 python3-dev python3-pip
# "apt-get install python3" will install python3.5 on Ubuntu 16.04
# The lastest pip doesn't support python3.5.
# Here we use a fixed version number to ensure compatibility.
sudo python3 -m pip install pip==20.3.4

echo "Install python packages"
sudo python3 -m pip install paramiko # need paramiko for ansible-playbook
Expand Down

0 comments on commit cf48368

Please sign in to comment.