Skip to content

Commit f48bab4

Browse files
Ubuntu: add /usr/bin/python3 (#46)
Co-authored-by: Adam J. Stewart <[email protected]>
1 parent a34551e commit f48bab4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfiles/linux-ubuntu22.04-x86_64_v2/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN apt-get -yqq update && \
2626

2727
RUN mkdir spack && \
2828
cd spack && \
29-
curl -Lfs https://github.com/spack/spack/archive/refs/heads/develop.tar.gz | tar -xzf - --strip-components=1 -C .
29+
curl -Lfs https://github.com/spack/spack/archive/refs/heads/develop.tar.gz | tar -xzf - --strip-components=1 -C .
3030

3131
COPY spack.yaml /root/
3232
COPY Dockerfiles/linux-ubuntu22.04-x86_64_v2/compilers.yaml Dockerfiles/linux-ubuntu22.04-x86_64_v2/packages.yaml /root/spack/etc/spack/
@@ -58,3 +58,7 @@ RUN apt-get -yqq update && \
5858
gcc gfortran g++ \
5959
libc-dev && \
6060
rm -rf /var/lib/apt/lists/*
61+
62+
# TF requires /usr/bin/python3
63+
# https://github.com/tensorflow/tensorflow/issues/62497
64+
RUN ln -s $(command -v python3) /usr/bin/python3

0 commit comments

Comments
 (0)