小编moj*_*ans的帖子

'模块对象没有属性'get'Python错误请求?

我刚刚使用'easy_insatll'安装了Requests模块,我试图运行这个tutrorial的演示代码,

import requests
payload = {'username': 'xxxx', 'password': 'xxxxx'}
r = requests.get('https://github.com/timeline.json')
Run Code Online (Sandbox Code Playgroud)

但我得到这个错误:AttributeError: easy_install

任何的想法?谢谢

python error-handling python-requests

25
推荐指数
4
解决办法
5万
查看次数

标签 统计

error-handling ×1

python ×1

python-requests ×1