AttributeError: module ‘requests‘ has no attribute ‘get‘

问题描述

执行python程序时报错:

AttributeError: module 'requests' has no attribute 'get'

解决方案

原始的requests版本过低,我安装的是requests==2.22.0的版本,升级一下即可。

pip install -U requests

版权声明:本文为zhanghm1995原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。