(2020.1.13已解决)ImportError: cannot import name 'StringIO'

  • 错误描述

    在这里插入图片描述

    原因是由于pandas版本(0.25.0)更新中移除了pandas.compat1

  • 解决方案

    本例中出现这个问题是因为tushare调用使用pandas导致,更新tushare就好了。

    pip install tushare --upgrade
    
  • References


  1. How to fix “ImportError: cannot import name ‘StringIO’” ↩︎

发布了754 篇原创文章 · 获赞 1023 · 访问量 54万+

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/103952914
今日推荐