Skip to content

Commit 964ccb2

Browse files
committed
[SPARK-45953][INFRA] Add Python 3.10 to Infra docker image
1 parent daebb59 commit 964ccb2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/infra/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,15 @@ RUN python3.9 -m pip install 'torch<=2.0.1' torchvision --index-url https://down
9595
RUN python3.9 -m pip install torcheval
9696
# Add Deepspeed as a testing dependency for DeepspeedTorchDistributor
9797
RUN python3.9 -m pip install deepspeed
98+
99+
# Install Python 3.10 at the last stage to avoid breaking Python 3.9
100+
RUN add-apt-repository ppa:deadsnakes/ppa
101+
RUN apt-get update && apt-get install -y \
102+
python3.10 \
103+
&& rm -rf /var/lib/apt/lists/*
104+
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
105+
RUN python3.10 -m pip install numpy 'pyarrow>=14.0.0' 'pandas<=2.1.3' scipy unittest-xml-reporting plotly>=4.8 'mlflow>=2.3.1' coverage matplotlib openpyxl 'memory-profiler==0.60.0' 'scikit-learn==1.1.*'
106+
RUN python3.10 -m pip install 'grpcio>=1.48,<1.57' 'grpcio-status>=1.48,<1.57' 'protobuf==3.20.3' 'googleapis-common-protos==1.56.4'
107+
RUN python3.10 -m pip install 'torch<=2.0.1' torchvision --index-url https://download.pytorch.org/whl/cpu
108+
RUN python3.10 -m pip install torcheval
109+
RUN python3.10 -m pip install deepspeed

0 commit comments

Comments
 (0)