AttributeError: module 'requests' has no attribute 'get'
时间: 2023-10-01 22:04:59 浏览: 242
该错误是因为在执行Python程序时,使用了requests模块的get函数,但是该模块并没有get属性。这个问题可以通过升级requests模块来解决。首先,确认你的requests模块的版本。你可以在终端或命令提示符中输入"pip show requests"命令来查看当前安装的requests模块的版本。如果版本较低,你可以通过运行"pip install -U requests"命令来升级requests模块到最新版本。这样,你的程序就可以正常使用get函数了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: module ‘requests‘ has no attribute ‘get](https://blog.csdn.net/zhanghm1995/article/details/122893823)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [【hacker的错误集】AttributeError:module ‘requests‘ has no attribute ‘get](https://blog.csdn.net/xqe777/article/details/123356700)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文