mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user