add ml jupyter

This commit is contained in:
cdllp2 2022-10-11 14:19:43 +08:00
parent 6a7c1ae6e1
commit f4fe6eb311

View File

@ -18,9 +18,9 @@ RUN echo "alias ll='ls -alF'" >> /root/.bashrc && \
/bin/bash -c "source /root/.bashrc"
# 安装python
RUN add-apt-repository -y ppa:deadsnakes/ppa && apt update && apt install -y libsasl2-dev libpq-dev
RUN add-apt-repository -y ppa:deadsnakes/ppa && apt update && apt install -y libsasl2-dev libpq-dev python3-pip
RUN apt install -y python3.8 python3.8-dev && rm -rf /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python3 \
RUN apt install -y python3.8 python3.8-dev && rm -rf /usr/bin/python3; ln -s /usr/bin/python3.8 /usr/bin/python3 \
&& rm -rf /usr/bin/python; ln -s /usr/bin/python3 /usr/bin/python
RUN bash -c "wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py --ignore-installed --force-reinstall" \