<p>我正在尝试将此API用于美联储经济数据(FRED):
<a href="https://github.com/zachwill/fred" rel="nofollow">https://github.com/zachwill/fred</a></p>
<p>我安装了文档中说需要的三个模块。我得到这个错误:</p>
<pre><code>import fred
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import fred
File "build\bdist.win32\egg\fred\__init__.py", line 1, in <module>
# Dummy file to make this a package.
File "build\bdist.win32\egg\fred\fred.py", line 21, in <module>
ImportError: cannot import name xml2dict
</code></pre>
<p>然后,我安装了xml2dict并再次安装了fred。当我现在先导入xml2dict,然后导入fred时,我会得到完全相同的错误。在</p>
<p>我花了很长时间学习在Python中安装模块,但我想我终于弄明白了。但我似乎找不到我做错了什么,需要一些帮助。谢谢!在</p>
<p>扎克:这就是我目前面临的问题:</p>
^{pr2}$