提交 3477bfac 编写于 作者: Z zhongpu 提交者: Jiabin Yang

modify build_docker.sh to support CUDA9.0/10.0 and python3, test=develop (#800)

上级 cbca2c2f
......@@ -59,6 +59,10 @@ fi
cat >> Dockerfile <<EOF
RUN pip install -U nltk \
&& python3 -m pip install --user --upgrade pip==9.0.3 \
&& pip3 install -U nltk \
&& pip3.6 install -U nltk \
&& pip3.7 install -U nltk \
&& python /book/.tools/cache_dataset.py
RUN ${update_mirror_cmd}
......@@ -67,8 +71,17 @@ RUN ${update_mirror_cmd}
apt-get -y install gcc curl git vim && \
apt-get -y clean && \
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
pip install --upgrade pip && \
pip install -U notedown pillow matplotlib jupyter numpy requests scipy
pip install -U notedown pillow matplotlib jupyter numpy requests scipy && \
pip3 install -U notedown pillow matplotlib numpy requests scipy && \
pip3.6 install -U notedown pillow matplotlib numpy requests scipy && \
pip3.7 install -U notedown pillow matplotlib numpy requests scipy
RUN pip3.6 install ipykernel && \
pip3.7 install ipykernel && \
python3.6 -m ipykernel install --name python3.6 && \
python3.7 -m ipykernel install --name python3.7 && \
pip3 install ipykernel && \
python3 -m ipykernel install --name python3
RUN curl https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz -o go1.8.linux-amd64.tar.gz && \
tar -zxvf go1.8.linux-amd64.tar.gz -C /usr/local/ && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册