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 urllib3pip3 list | grep chardet

在运行dirsearch时遇到一个错误,提示urllib3 1.26.2和chardet 4.0.0的版本不被支持。为修复此问题,需要删除当前版本并安装指定版本的库。可以使用pip或apt来卸载,然后通过pip安装urllib3<=1.25和chardet<3.1.0。最后,验证安装的版本是否正确。这是一个关于Python库版本管理和依赖问题的解决步骤。
948





