Skip to content

Commit 8ebbfb1

Browse files
malfetpytorchmergebot
authored andcommitted
Add /opt/python-venv/bin to the PATH (#170253)
To solve `python not found` when official docker images are used Fixes: #170252 Pull Request resolved: #170253 Approved by: https://github.com/atalman
1 parent 8b21f92 commit 8ebbfb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ENV PATH /opt/pytorch-venv/bin:$PATH
7676
ENV NVIDIA_VISIBLE_DEVICES all
7777
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
7878
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
79-
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
79+
ENV PATH /opt/pytorch-venv/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH
8080
ENV PYTORCH_VERSION ${PYTORCH_VERSION}
8181
WORKDIR /workspace
8282

0 commit comments

Comments
 (0)