我正在尝试运行 d3py 自述文件中可用的 d3py 示例代码(请参阅下面的链接),并且收到以下错误:
https://github.com/mikedewar/d3py/blob/master/README.md
(32 位 Windows 上的 python 2.7.3)
>>> # instantiate the figure object
>>> fig = d3py.Figure(df, name="basic_example", width=300, height=300)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\d3py\d3py.py", line 97, in __init__
IOError: [Errno 2] No such file or directory: 'static/d3.js'
>>>
我在 PowerShell 中使用以下命令安装了 d3py 包:
easy_install https://github.com/mikedewar/d3py/tarball/master
并且,在 python 会话(即import d3py
)中导入包不会导致任何错误。我该怎么做才能使示例代码正常工作?