提问人:John P 提问时间:12/21/2022 最后编辑:John P 更新时间:12/21/2022 访问量:69
请求依赖项警告
Request Dependency Warning
问:
在线自学python。编写了一个简单的 python 脚本(如下),该脚本生成了预期结果和依赖项警告(如下)。Python 3.11 和 3.10 会产生此依赖项警告。
<导入请求
引用 = requests.get(url=“https://api.kanye.rest”) quote.raise_for_status()
侃爷 = quote.json()
print(侃爷)>
显示代码和警告的整个控制台输出:
C:\Users\John\AppData\Local\Programs\Python\Python310\python.exe E:\Python_Projects\Kanye\scratch.py
C:\Users\John\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\_init_.py:109:RequestsDependencyWarning:urllib3 (1.26.13) 或 chardet (None)/charset_normalizer (3.0.1) 与支持的版本不匹配!
warnings.warn(
{'quote': '我们将改变范式'}
进程已完成,退出代码为 0
Windows 11 Pycharm PyCharm 2022.3(社区版)
Build #PC-223.7571.203,构建于 2022 年 11 月 30 日
运行时版本:17.0.5+1-b653.14 amd64
VM:JetBrains s.r.o. 开发的 OpenJDK 64 位服务器虚拟机
Windows 11 10.0
GC:G1 年轻一代,G1 老一代
内存:2030M
核心数:12
注册表:
debugger.new.tool.window.layout=true ide.experimental.ui=true
非捆绑插件:
izhangzhihao.rainbow.brackets (2022.3.5)

Installed python modules
I installed python 3.10.9 with the same results. At this point I realized mismatch in modules but I lack expertise to resolve.
Asking for assistance in solving the dependency warning.
Curious, in spite of the mismatch the code works as intended. Any clue why?
答: 暂无答案
评论