国内镜像源详细使用教程!

WARNING: Retrying (Retry(total=2, connect=None, read=None,

这些天一直肝金融学,脑子一直放空,看不太下去,于是乎就想股票的k线图,想着怎么下载k线图,然后从下载库开始就出现大问题了,就记录了一下自己这憨批的操作!啊出大问题,没有写-i,详细内容请看下面!

  • 用清华和豆瓣镜像源下载所需的库mpl_finance犯了个小错误
  • 刚开始我是这样下载包的
pip install mpl_finance https://pypi.tuna.tsinghua.edu.cn/simple pyecharts

结果如下所示 : 报错信息

WARNING: Retrying (Retry(total=2, connect=None, read=None,
redirect=None, status

在这里插入图片描述

  • 然后上网查了查资料,意识到是自己那个镜像源的使用方法写错了,我傻傻地把-i给去掉了,所有一直在报错,难顶!
  • 正确的安装方法使用方法如下:
pip install mpl_finance -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com pip

在这里插入图片描述
最后附带上国内的镜像源:

  1. 豆瓣: https://pypi.doubanio.com/simple/
  2. 清华: https://pypi.tuna.tsinghua.edu.cn/simple/
  3. 阿里: http://mirrors.aliyun.com/pypi/simple/
  4. 中科大: https://pypi.mirrors.ustc.edu.cn/simple/
  • 使用方法: 如上图安装mpl_finance包所示,只需要把你需要安装的库替换mpl_finance库即可!

  • 最终还得多亏了学习了这篇博客大佬,大家根据这篇更详细使用镜像源! https://blog.csdn.net/qq_41906429/article/details/95252447

  • 在这个星球上,你很重要,请珍惜你的珍贵! ~~~夜斗小神社

猜你喜欢

转载自blog.csdn.net/xtreallydance/article/details/112596963