美文网首页
urllib3 (1.22) or chardet (2.2.1

urllib3 (1.22) or chardet (2.2.1

作者: lilith买买买 | 来源:发表于2018-06-28 10:32 被阅读1995次

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

相关文章

网友评论

      本文标题:urllib3 (1.22) or chardet (2.2.1

      本文链接:https://www.haomeiwen.com/subject/fcxgyftx.html