ImportError: cannot import name UnrewindableBodyError

错误信息:

File "/usr/lib/python2.7/site-packages/urllib3/util/__init__.py", line 4, in <module>
    from .request import make_headers
  File "/usr/lib/python2.7/site-packages/urllib3/util/request.py", line 5, in <module>
    from ..exceptions import UnrewindableBodyError
ImportError: cannot import name UnrewindableBodyError

解决办法,重装 urllib3 库:

pip uninstall urllib3
pip install urllib3
    原文作者:削微寒
    原文地址: https://www.cnblogs.com/xueweihan/p/7185133.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞