Skip to content

Commit

Permalink
Fix externally managed packages error for python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
msafonov committed Oct 17, 2024
1 parent 189ffc1 commit db76295
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ USER 0
RUN mkdir ${SPARK_HOME}/python
RUN apt-get update && \
apt install -y python3 python3-pip && \
pip3 install --upgrade setuptools --break-system-packages && \
rm -rf /usr/lib/python3*/EXTERNALLY-MANAGED && \
pip3 install --upgrade setuptools && \
# Removed the .cache to save space
rm -rf /root/.cache && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit db76295

Please sign in to comment.