mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
fix:Allow pip to install packages in default env (#10794)
This commit is contained in:
@@ -19,6 +19,13 @@ export PIPX_HOME=/opt/pipx
|
|||||||
if is_ubuntu24; then
|
if is_ubuntu24; then
|
||||||
apt-get install --no-install-recommends pipx
|
apt-get install --no-install-recommends pipx
|
||||||
pipx ensurepath
|
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
|
else
|
||||||
python3 -m pip install pipx
|
python3 -m pip install pipx
|
||||||
python3 -m pipx ensurepath
|
python3 -m pipx ensurepath
|
||||||
|
|||||||
Reference in New Issue
Block a user