Windows环境下 dirseach 报错urllib3 (1.25.11) or chardet (5.0.0) doesn‘t match a supported version!

1 问题原因

模块版本不适配,需要卸载现有版本然后安装适配版本。
报错“c:\python\python37\lib\site-packages\dirsearch\thirdparty\requests_init_.py:90: RequestsDependencyWarning: urllib3 (1.25.11) or chardet (5.0.0) doesn’t match a supported version!
RequestsDependencyWarning)”
在这里插入图片描述

2.解决办法

2.1卸载当前的版本

pip3 uninstall urllib3
pip3 uninstall chardert

在这里插入图片描述

2.2安装适配版本

 pip3 install "chardet<3.1.0"
 pip3 install "urllib3<=1.25"

在这里插入图片描述

3.查看结果

在这里插入图片描述
已恢复正常

猜你喜欢

转载自blog.csdn.net/weixin_54430466/article/details/128607496
今日推荐