'RequestsDependencyWarning for yfinance version 0.1.70

yfinance version 0.1.70 is giving me an error for RequestsDependencyWarning, but it failed to resolve after I upgraded to the latest version for the following packages. Any idea?

Current version: Python: 2.7.9, pandas: 0.24.2, numpy: 1.15.4, requests: 2.26.0, lxml: 4.8.0

Error message:

C:\Python27\lib\site-packages\requests\__init__.py:104: RequestsDependencyWarnin
g: urllib3 (1.6) or chardet (4.0.0)/charset_normalizer (None) doesn't match a su
pported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "yfinanceTest.py", line 1, in <module>
    import yfinance as yf
  File "C:\Python27\lib\site-packages\yfinance\__init__.py", line 23, in <module
>
    from .ticker import Ticker
  File "C:\Python27\lib\site-packages\yfinance\ticker.py", line 26, in <module>
    import requests as _requests
  File "C:\Python27\lib\site-packages\requests\__init__.py", line 126, in <modul
e>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source