urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version

requests依赖包警告
/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)
其实对业务代码的执行没什么大影响,就是看着很不舒服

解决:重新装一下requests
可以看到chardet 2.2.1被uninstall,然后install了3.0.4版本

[root@sky ~]# pip install requests
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests)
Collecting chardet<3.1.0,>=3.0.2 (from requests)
  Downloading http://mirrors.aliyun.com/pypi/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 52.1MB/s 
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python2.7/site-packages (from requests)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests)
Installing collected packages: chardet
  Found existing installation: chardet 2.2.1
    Uninstalling chardet-2.2.1:
      Successfully uninstalled chardet-2.2.1
Successfully installed chardet-3.0.4
©著作權歸作者所有,轉載或內容合作請聯系作者

推薦閱讀更多精彩內容

友情链接更多精彩内容