RequestsDependencyWarning: urllib3 (2.0.0.dev0) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)
RequestsDependencyWarning: urllib3 (2.0.0.dev0) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)
用requests模块爬虫时出现这个警告,意思urllib3模块和chardet模块俩个不一致,支持不太好,所以需要将这俩个卸载,然后,将requests模块更新,或者将requests模块卸载重新安装即可:
- pip uninstall urllib3
- pip uninstall chardet
- pip install --upgrade requests