提交 b1aa90e3 编写于 作者: L Liangliang He

Change pypi mirros to aliyun

上级 576ca249
...@@ -113,9 +113,10 @@ ENV PATH ${PATH}:${ANDROID_NDK_HOME} ...@@ -113,9 +113,10 @@ ENV PATH ${PATH}:${ANDROID_NDK_HOME}
# Install tools # Install tools
RUN apt-get install -y --no-install-recommends \ RUN apt-get install -y --no-install-recommends \
android-tools-adb android-tools-adb
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools RUN pip install --upgrade pip
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools
"numpy>=1.14.0" \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
numpy>=1.14.0 \
scipy \ scipy \
jinja2 \ jinja2 \
pyyaml \ pyyaml \
...@@ -125,7 +126,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com ...@@ -125,7 +126,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
PTable PTable
# Install Tensorflow # Install Tensorflow
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
tensorflow==1.8.0 tensorflow==1.8.0
# Install pytorch (refer to: https://pytorch.org/get-started/locally/) # Install pytorch (refer to: https://pytorch.org/get-started/locally/)
...@@ -133,7 +134,7 @@ RUN pip install future==0.17.1 torchvision_nightly ...@@ -133,7 +134,7 @@ RUN pip install future==0.17.1 torchvision_nightly
RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# Install ONNX # Install ONNX
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
onnx==1.3.0 \ onnx==1.3.0 \
onnx-tf==1.2.0 onnx-tf==1.2.0
......
...@@ -9,7 +9,7 @@ RUN apt-get install -y --no-install-recommends \ ...@@ -9,7 +9,7 @@ RUN apt-get install -y --no-install-recommends \
screen \ screen \
htop htop
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
sphinx \ sphinx \
sphinx-autobuild \ sphinx-autobuild \
sphinx_rtd_theme \ sphinx_rtd_theme \
...@@ -19,8 +19,8 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com ...@@ -19,8 +19,8 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
RUN pyenv global 3.6.3 RUN pyenv global 3.6.3
# Install tools # Install tools
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
"numpy>=1.14.0" \ "numpy>=1.14.0" \
scipy \ scipy \
jinja2 \ jinja2 \
...@@ -31,7 +31,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com ...@@ -31,7 +31,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
PTable PTable
# Install Tensorflow # Install Tensorflow
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
tensorflow==1.8.0 tensorflow==1.8.0
# Install pytorch (refer to: https://pytorch.org/get-started/locally/) # Install pytorch (refer to: https://pytorch.org/get-started/locally/)
...@@ -39,11 +39,11 @@ RUN pip install future==0.17.1 torchvision_nightly ...@@ -39,11 +39,11 @@ RUN pip install future==0.17.1 torchvision_nightly
RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# Install ONNX # Install ONNX
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
onnx==1.3.0 \ onnx==1.3.0 \
onnx-tf==1.2.0 onnx-tf==1.2.0
RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
sphinx \ sphinx \
sphinx-autobuild \ sphinx-autobuild \
sphinx_rtd_theme \ sphinx_rtd_theme \
......
...@@ -24,5 +24,3 @@ else ...@@ -24,5 +24,3 @@ else
echo "Login docker registry server is needed!" echo "Login docker registry server is needed!"
exit 1 exit 1
fi fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册