osx - Python "import requests" return AttributeError -
i use module 'requests', however, after installation, importing not work properly:
python 2.7.10 (v2.7.10:15c95b7d81dc, may 23 2015, 09:33:12) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import requests traceback (most recent call last): file "<stdin>", line 1, in <module> file "requests.py", line 20, in <module> r = requests.post(url, data=json.dumps(payload), headers=headers) attributeerror: 'module' object has no attribute 'post'
any clue?
ok, realized problem actual filename requests.py :d hope helps somebody.
Comments
Post a Comment