【转载】pathon报错 RequestsDependencyWarning: urllib3 (1.21.1) or chardet (2.2.1) doesn't match a supported version!

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

  RequestsDependencyWarning)

原因:

python库中urllib3 (1.21.1) or chardet (2.2.1) 的版本不兼容

 

解决方法:

pip uninstall urllib3
pip uninstall  chardet
pip install requests