python中解决urllib3模块和chardet模块版本不一致问题
日常在写python爬虫程序的时候,可能会遇到错误提示:
RequestsDependencyWarning: urllib3 (*.**.**) or chardet (*.*.*) doesn’t match a supported version!
这是urllib3模块和chardet模块版本不一致。
解决办法
卸载urllib3和chardet,并且更新requests模块
代码
pip uninstall urllib3pip uninstall chardetpip install --upgrade requests
- 原文作者:虎窝小栈
- 原文链接:https://www.huwo.top/post/c5h3b8k5/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. 进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。