urllib3 or chardet版本不匹配问题
报错信息:
/home/kali/sectools/dirsearch/thirdparty/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (4.0.0) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
根据报错信息找到对应的文件:dirsearch/thirdparty/requests/__init__.py
dirsearch支持的版本:
操作:
- 删除当前版本(删除时使用哪种方式,取决于安装时使用的哪种方式。)
- 通过pip删除:
pip3 uninstall urllib3
pip3 uninstall chardet
- 通过apt删除:
sudo apt remove python3-urllib3
sudo apt remove python3-chardet
- 安装指定版本
- 通过pip安装:
sudo pip3 install "chardet<3.1.0"
sudo pip3 install "urllib3<=1.25"
确认版本安装情况:
pip3 list | grep urllib3
pip3 list | grep chardet