使用conda安装zipline后,尝试导入zipline时出现错误
Python 3.5.6 |Anaconda custom (64-bit)| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\__init__.py", line 29, in <module>
from .utils.run_algo import run_algorithm
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\utils\run_algo.py", line 18, in <module>
from zipline.data import bundles
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\data\bundles\__init__.py", line 2, in <module>
from . import quandl # noqa
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\data\bundles\quandl.py", line 17, in <module>
from . import core as bundles
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\data\bundles\core.py", line 24, in <module>
from zipline.assets.asset_db_migrations import downgrade
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\zipline\assets\asset_db_migrations.py", line 1, in <module>
from alembic.migration import MigrationContext
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\alembic\__init__.py", line 8, in <module>
from . import op # noqa
File "C:\Users\Karl\AppData\Local\Continuum\Anaconda3\lib\site-packages\alembic\op.py", line 6, in <module>
util.create_module_class_proxy(Operations, globals(), locals())
AttributeError: module 'alembic.util' has no attribute 'create_module_class_proxy'