60180607c7fa56058.jpg_fo742.jpg

RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
-i: 指定库的安装源
-U:升级 原来已经安装的包,不带U不会装新版本,带上U才会更新到最新版本。
--no-cache-dir: 本地不缓存,减少dockerfile体积

国内镜像地址:

阿里云 http://mirrors.aliyun.com/pypi/simple/  
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code