1. pip / conda 下载一定注意

  • 切换国内源:

    • 永久的:修改文件:linux下,修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna,内容如下:

      SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
      [global]
       index-url = https://pypi.tuna.tsinghua.edu.cn/simple
      
      # 几个常用的源
      # 阿里云 https://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/
      # 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
    • 临时的:pip install -i <https://pypi.tuna.tsinghua.edu.cn/simple> gevent

2. wget 下载一定注意

  • 换更好的工具,wget 不一定最优,大文件下载试下 axel
  • 想办法让服务器也用上vpn吧,不然下载某些资源很慢
  • 几个工具参考:https://linux.cn/article-8124-1.html
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄