(一)问题分析
requirements.txt 文件 — 用于记录所有需要安装的依赖包及其精确的版本号
因为下载镜像源默认为国外https://pypi.org/simple,速度较慢
(二)解决办法
修改镜像源为国内,eg:清华/阿里云/豆瓣,以阿里云镜像为例
$ python -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ${DIR}/requirements.txt
(一)问题分析
requirements.txt 文件 — 用于记录所有需要安装的依赖包及其精确的版本号
因为下载镜像源默认为国外https://pypi.org/simple,速度较慢
(二)解决办法
修改镜像源为国内,eg:清华/阿里云/豆瓣,以阿里云镜像为例
$ python -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ${DIR}/requirements.txt