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

Change pypi mirros to aliyun

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