Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda-Python RequestsDependencyWarning: urllib3 (1.22) or chardet (2.3.0) doesn't match a supported version

I am getting a warning that doesn't seem to be covered in any other online resource. I have Anaconda Python 3.6 installed. The warning I get when I create a new Conda environment is:

RequestsDependencyWarning: urllib3 (1.22) or chardet (2.3.0) doesn't match a supported version!
  RequestsDependencyWarning)

I thought it was a pip issue because of a possibly related question (not sure if it actually is: How to fix urllib3 RuntimeError: Requests dependency 'urllib3' must be version >= 1.21.1, < 1.22?). But I get the same issue:

 $ conda update pip
/Users/VincentLa/anaconda3/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.3.0) doesn't match a supported version!
  RequestsDependencyWarning)
like image 427
Vincent Avatar asked Aug 22 '17 16:08

Vincent


2 Answers

pip install --upgrade chardet

may help.

like image 165
Tedo Vrbanec Avatar answered Oct 19 '22 08:10

Tedo Vrbanec


The only combination that helped me was (taken from http://blog.51cto.com/binuu/1948043):

pip uninstall urllib3    
pip uninstall chardet
pip install requests

All other ones were unable to update chardet, as "it was already updated" (it appears, that info was taken for that lib in another location).

like image 10
evgeny9 Avatar answered Oct 19 '22 10:10

evgeny9