requests 依赖的库都已经安装了.
Requirement not upgraded as not directly required: chardet<3.1.0,>=3.0.2 in d:\p
ython27\lib\site-packages (from requests) (3.0.4)
Requirement not upgraded as not directly required: certifi>=2017.4.17 in d:\pyth
on27\lib\site-packages (from requests) (2018.4.16)
Requirement not upgraded as not directly required: urllib3<1.23,>=1.21.1 in d:\p
ython27\lib\site-packages (from requests) (1.22)
Requirement not upgraded as not directly required: idna<2.7,>=2.5 in d:\python27
\lib\site-packages (from requests) (2.5)
pip install requests -U
提示
Successfully installed requests-2.18.4
pip 版本
pip 10.0.1 from d:\python27\lib\site-packages\pip (python 2.7)
然后我在 python 执行 import requests 报错:
>>> import requests
D:\Python27\lib\site-packages\requests\__init__.py:80: RequestsDependencyWarning
: urllib3 (1.9.1) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python27\lib\site-packages\requests\__init__.py", line 90, in <module
>
from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.