Python: RequestsDependencyWarning: urllib3 or chardet doesn't match a supported version!

I’m getting this error from python:

% which pip
/usr/bin/pip
% pip > /dev/null
/usr/lib/python3.8/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "

Reinstalling all python packages didn’t help, either:

sudo pacman -S $(sudo pacman -Qq | grep '^python')

How do I fix the problem being reported?

I thought it was a system issue, but unsetting $PYTHONUSERBASE made the problem go away, so it’s an issue with my own setup.

I updated pip with:

pip install --user -U pip

Then updated all PYTHONUERBASE installed packages:

pip freeze --user | cut -d'=' -f1 | xargs pip install --user -U

This post is likely helpful if the above doesn’t work for you:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.