Skip to content

Commit

Permalink
Merge pull request #1651 from lnis-uofu/xt_ubuntu2204
Browse files Browse the repository at this point in the history
[docker] fix bugs on python3
  • Loading branch information
tangxifan authored May 6, 2024
2 parents fda9a8e + 91342f9 commit 1f1bd17
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/Dockerfile.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ RUN apt-get update && apt-get install --no-install-recommends software-propertie
ADD .github/workflows/install_dependencies_run_ubuntu22p04.sh install_dependencies_run.sh
RUN bash install_dependencies_run.sh
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.8 get-pip.py && rm get-pip.py
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
# Comment out this line since Ubuntu 20.04 does not support it
# RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
RUN python3.10 get-pip.py && rm get-pip.py
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
ADD requirements.txt requirements.txt
ENV PYTHON_EXEC=python3.8
ENV PYTHON_EXEC=python3.10
RUN ${PYTHON_EXEC} -m pip install -r requirements.txt

0 comments on commit 1f1bd17

Please sign in to comment.