我明明用pip install requests安裝成功了,但是依然報下面的錯
錯誤1
requests.packages.urllib3.disable_warnings()
AttributeError: 'module' object has no attribute 'packages'
錯誤2
from requests.packages import urllib3
ImportError: No module named packages
后來發現只要把用apt-get安裝的python requests刪除就可。
apt-get remove python-requests