python pip安装requirements.txt依赖与国内镜像
python pip安装requirements.txt依赖与国内镜像
如果网络通畅,直接pip安装依赖:
pip install -r requirements.txt
如果需要国内的镜像,可以考虑使用阿里的,在后面加上:
-i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
组成:
pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
原文地址:https://blog.csdn.net/zhangphil/article/details/142503930
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!