一、说明
python环境下载依赖环境时,直接pip install 依赖名,有时候会出现超时的情况。所以要从国内镜像地址下载一些常用的依赖,这样会避免超时的情况出现,并且还能大大提升下载速度。
二、下载模板
pip install 依赖名 -i https://pypi.tuna.tsinghua.edu.cn/simple
其中https://pypi.tuna.tsinghua.edu.cn/simple就是国内镜像;
下载实例:
pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple