/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version! RequestsDependencyWarning)

时间:2021-10-14 18:11:44

[root@iZwz9bhan5nqzh979qokrkZ ~]# ansible all -m ping

/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version! RequestsDependencyWarning)

 

/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version! RequestsDependencyWarning)

原因:python库中urllib3 (1.22) or chardet (2.2.1) 的版本不兼容 解决如下: [

[root@aaaaaaaaaaaaaaaaaaaa~]# pip uninstall urllib3

y

[root@aaaaaaaaaaaaaaaaaaaa~]# pip uninstall chardet

 

y

[root@aaaaaaaaaaaaaaaaaaaa~]# pip install requests

y