【英文】Python3项目引入requests包运行项目时报错

Introduction

When running a Python3 project with the requests package, an error occurs: RequestsDependencyWarning: urllib3 (2.0.4) or chardet (3.0.4)/charset_normalizer (3.1.0) doesn't match a supported version!

Cause

  • Some dependency packages are outdated.

Solution

  • Remove outdated dependencies and update the requests package.
1
2
3
pip3 uninstall urllib3
pip3 uninstall chardet
pip3 install --upgrade requests

Completion

References

CSDN - Guarding with the Rest of Your Life