原因:用requests爬虫时出现这个警告,这是因为操作系统安装的请求模块不同,以及本地安装的python依赖关系不同。 解决方案:升级requests包 pip install requests Reference: https://stackoverflow.com/questions/56155627/requestsdependencywarning-urllib3-1-25-2-or-chardet-3-0-4-doesnt-match-a-s/56170469 https://stackoverflow.com/questions/50202238/python-pip-requestsdependencywarning-urllib3-1-9-1-or-chardet-2-3-0-doe