Skip to content

Commit

Permalink
fix: symlink python3, not python, to python3.7
Browse files Browse the repository at this point in the history
For Ubuntu 18, default python is 2.7 and python3 is 3.x.
  • Loading branch information
tk-woven committed Aug 3, 2022
1 parent fec4926 commit a83f92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ RUN apt-get update && apt-get install -y --allow-downgrades --allow-change-held-
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /usr/bin/python${PYTHON_VERSION} /usr/bin/python
RUN ln -sf /usr/bin/python${PYTHON_VERSION} /usr/bin/python3
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
python3 get-pip.py && \
rm get-pip.py

# Install Pytorch
Expand Down

0 comments on commit a83f92d

Please sign in to comment.