0

我正在尝试导入 zipline.transforms,但输出消息显示没有名为转换的模块。我正在使用 python2.7 并通过 conda 下载了 zipline。

from zipline.transforms import batch_transforms

ImportErrorTraceback (most recent call last)
<ipython-input-55-253f85965feb> in <module>()
----> 1 from zipline.transforms import batch_transform

ImportError: No module named transforms
4

1 回答 1

0

First, is your IDE (pycharm or sublime) included Anaconda in the path? Second, please check where you zipline module was installed, usually .../lib/python2.7/site-packages/zipline, does it include a module called "transforms"? maybe it's an old module, not in the updated zipline anymore.

于 2018-07-25T08:22:16.780 回答