Skip to content

Commit

Permalink
fix:Allow pip to install packages in default env (actions#10794)
Browse files Browse the repository at this point in the history
  • Loading branch information
subir0071 authored and karol-pieciukiewicz committed Nov 11, 2024
1 parent dcd3047 commit 525a37b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/ubuntu/scripts/build/install-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ export PIPX_HOME=/opt/pipx
if is_ubuntu24; then
apt-get install --no-install-recommends pipx
pipx ensurepath

# Create temporary workaround to allow user to continue using pip
sudo cat <<EOF > /etc/pip.conf
[global]
break-system-packages = true
EOF

else
python3 -m pip install pipx
python3 -m pipx ensurepath
Expand Down

0 comments on commit 525a37b

Please sign in to comment.