我正在安装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
感谢您的帮助, 约翰
答案 0 :(得分:0)
已修复,仅2.7和3.5版本,否则不能