[Tutor] Help with running an API

Mark Meanwell mmeanwell at gmail.com
Sat Oct 25 18:08:36 CEST 2014


Hi Folks - new to python and trying to run an API. Running version 2.7.3.
on Windows 7 machine.

 Here is the scenario for the given API (FRED API in this case):

easy_install Fred from C:\ - this installs to C:\site packages

then I fire up the python shell and run file created for fred api:

from fredapi import Fred
fred = Fred(api_key='my api key')
data = fred.get_series('SP500')

keep getting below error message:
ImportError: cannot import name Fred

thanks for any suggestions!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141025/cb181d3b/attachment.html>


More information about the Tutor mailing list