fix:Allow pip to install packages in default env (#10794)

This commit is contained in:
Subir Ghosh
2024-10-16 03:37:29 -06:00
committed by GitHub
parent 499aa8a821
commit f3ad9cadef

View File

@@ -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