0

我正在安装 zipline,我按照网站步骤https://pythonprogramming.net/zipline-local-install-python-programming-for-finance/

当我输入 import zipline 时,给我错误信息,就像

>>> import zipline
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\HP T\Anaconda3\lib\site-packages\zipline\__init__.py", line 24, in <module>
    from . import finance
  File "C:\Users\HP T\Anaconda3\lib\site-packages\zipline\finance\__init__.py", line 16, in <module>
    from . import execution, trading
  File "C:\Users\HP T\Anaconda3\lib\site-packages\zipline\finance\trading.py", line 23, in <module>
    from zipline.assets import AssetDBWriter, AssetFinder
  File "C:\Users\HP T\Anaconda3\lib\site-packages\zipline\assets\__init__.py", line 23, in <module>
    from .assets import (
  File "C:\Users\HP T\Anaconda3\lib\site-packages\zipline\assets\assets.py", line 604
    self.engine.execute(self._select_most_recent_symbols_chunk(sid_group),
    ^
SyntaxError: Generator expression must be parenthesized

谢谢你的帮助,约翰

4

1 回答 1

0

已修复,只有 2.7 和 3.5 版本,否则不能

于 2019-09-04T15:44:05.043 回答