我明明用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