最近在使用ansible时总是出现如下告警,看着很难受:
/usr/lib/python2.7/site-packages/requests/__init__.py:104: RequestsDependencyWarning: urllib3 (1.21.1) or chardet (2.2.1)/charset_normalizer (None) doesn't match a supported version!
RequestsDependencyWarning)
在网上搜索了相关教程,发现是urllib3、chardet这两个库的版本和requests不兼容,卸载后重新安装requests库即可、
pip uninstall urllib3
pip uninstall chardet
pip install requests
参考链接:https://blog.51cto.com/mjunetwslinux/2177727?source=dra,非常感谢这位博主的文章!