Syl*_*ain 2 python python-3.x python-requests
我requests上周安装了这个包,它运行良好......直到今天早上。我对此进行了编码,并收到了AttributeError: 'module' object has no attribute 'get'消息:
import requests
r = requests.get('http://www.yellowpages.com/search?search_terms=coffee&geo_location_terms=Montreal%2C+QC')
Run Code Online (Sandbox Code Playgroud)
我在其他帖子中读到这可能是因为我安装了多个requests软件包。当我编码时,print(dir(requests))我得到两个列表..:
['__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__',
'requests']
['__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__',
'requests']
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。
西尔万
| 归档时间: |
|
| 查看次数: |
5787 次 |
| 最近记录: |