Python requests ImportError: cannot import name HeaderParsingError

前端 未结 3 1202
梦谈多话
梦谈多话 2021-01-05 08:16

OS: Mac OS X. When I\'m trying to run the code below, I get the error:

ImportError: cannot import name HeaderParsingError

I\'ve

3条回答
  •  暖寄归人
    2021-01-05 08:39

    I had the same issue while I was simply trying to make any command using pip. At the end I found a very simple solution, just use sudo before pip.

    Specifically for above issue, I have used following command.

    sudo pip install --upgrade urllib3
    

    Hope that will help.

提交回复
热议问题