可以在pip install 后面加上 -i 镜像url 模块名

其中镜像url有: 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

  清华:https://pypi.tuna.tsinghua.edu.cn/simple

  阿里云:http://mirrors.aliyun.com/pypi/simple/

  中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

  华中理工大学:http://pypi.hustunique.com/

  山东理工大学:http://pypi.sdutlinux.org/ 

  豆瓣:http://pypi.douban.com/simple/

 

例如:安装pandas这个模块

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄