SyntaxError: Generator expression must be parenthesized in Zipline
SyntaxError: Generator expression must be parenthesized in Zipline
我正在安装 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
感谢您的帮助,
约翰
已修复,版本只有2.7和3.5,否则无法
我正在安装 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
感谢您的帮助, 约翰
已修复,版本只有2.7和3.5,否则无法