Skip to content

Commit b83d3c2

Browse files
committed
Install pip via ensurepip for Python 3.12
1 parent de00b80 commit b83d3c2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

images/scripts/build-toolchain.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,16 @@ install_python_312() {
143143
apt-get install -y -qq --no-install-recommends \
144144
python3.12 \
145145
python3.12-venv \
146-
python3.12-dev \
147-
python3-pip
146+
python3.12-dev
147+
python3.12 -m ensurepip --upgrade
148+
ln -sf /usr/local/bin/pip3 /usr/local/bin/pip || true
148149
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 || true
149150
update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 || true
150151
apt-get clean
151152
rm -rf /var/lib/apt/lists/*
152153
echo '--- Python version ---'
153154
python3.12 --version
155+
pip3 --version || true
154156
"
155157
}
156158

0 commit comments

Comments
 (0)