Skip to content

Commit

Permalink
fix pip on ubnutu v8
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed Dec 19, 2024
1 parent 22b8596 commit 8d736f3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
python3-pip \
pipx \
# pipx \
sudo \
&& apt-get clean all

### Workaround for old pipx package in Ubuntu 24.04 repos: https://github.com/pypa/pipx/issues/1481
RUN pipx ensurepath \
&& pipx install pipx \
&& apt remove -y pipx
# RUN pipx ensurepath \
# && pipx install pipx \
# && apt remove -y pipx

RUN ~/.local/bin/pipx install pipx --global \
&& pipx uninstall pipx
# RUN ~/.local/bin/pipx install pipx --global \
# && pipx uninstall pipx

RUN pipx ensurepath \
&& pipx ensurepath --global
# RUN pipx ensurepath \
# && pipx ensurepath --global
RUN pip3 install --break-system-packages --no-cache-dir pipx
###

# https://pypi.org/project/pip/
Expand Down

0 comments on commit 8d736f3

Please sign in to comment.