码迷,mamicode.com
首页 > 其他好文 > 详细

解决:AttributeError: module 'requests' has no attribute 'get'”

时间:2017-08-14 11:28:50      阅读:874      评论:0      收藏:0      [点我收藏+]

标签:images   tee   logs   error:   技术分享   src   .com   安装   www   

今天学习Requests库,当用pip install requests安装后,写了一段代码报错:AttributeError: module ‘requests‘ has no attribute ‘get‘”

技术分享

技术分享

后从https://www.zhihu.com/question/57011609得到答案,原来是我的代码文件命名为requests.py 了。赶紧改了,发现ok:

技术分享

解决:AttributeError: module 'requests' has no attribute 'get'”

标签:images   tee   logs   error:   技术分享   src   .com   安装   www   

原文地址:http://www.cnblogs.com/cnhkzyy/p/7356593.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!